• Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.
    To learn more about how to use our BBCode feature, please click here.

    Thank you, Code Forum.

Have you ever used a php game script?


New Coder
Apr 19, 2019
Did you guys use a php script that let's users play a game on your site. There are many out there, and I have been hooked a long time ago on the mafia script, where you have a mafioso and do mafia things through out the city, level up, etc. Anyone played around with those?


Active Coder
Apr 19, 2019
You can definitely create these games with PHP, but it's better to only use PHP for the game progress saving & behind-the-scenes logic, with HTML and JavaScript controlling the client side experience. You CAN get away with only using HTML/PHP, but it's going to require a lot of page loads (every action would = a page load) if you do not use JS AJAX.