What are some popular online games that can be developed using PHP and SQL?

Click For Summary
Creating an online game using PHP and SQL is feasible, particularly for text-based or less graphically intensive games. PHP is effective for developing web-based front-ends and managing databases, making it suitable for quiz games or management simulations. However, the limitations of PHP arise from its server-side nature, where each page request results in a fresh start without retaining user variables unless cookies or POST/GET methods are employed. For more interactive or graphically demanding games, technologies like Java or Flash are recommended. While PHP can support simple games, its scope is limited, and developers should consider the type of game they wish to create when choosing their technology stack.
Aria
Messages
1
Reaction score
0
Hi, I'm a php student, or rather I'm teaching myself php with the aid of some friends and co-workers for a project which I'm planning - to create an online game made with php and sql, I was wondering 2 things

Firstly, would anyone be able to give me any advice on what I'm likely to need to know for it?
Secondly, can anyone suggest any decent online games that I could take a look at to get a few ideas?

Thanks in advance for any help you can give.

Ari.
 
Computer science news on Phys.org
Aria said:
Hi, I'm a php student, or rather I'm teaching myself php with the aid of some friends and co-workers for a project which I'm planning - to create an online game made with php and sql, I was wondering 2 things

Firstly, would anyone be able to give me any advice on what I'm likely to need to know for it?
Secondly, can anyone suggest any decent online games that I could take a look at to get a few ideas?

Thanks in advance for any help you can give.

Ari.
I hadn't thought that online games can be made with PHP. PHP is a dynamic web technology that downloads a different HTML page from each request. It would be another case if you combined PHP pages with an active technology like JavaScript, Java, DreamWeaver or Shockwave. I think that a combination of PHP and SQL would be appropriate for queries, browsing, guest books, forums, etc., but not for games. Consider a Java Applet.
 
Unless your making some type of text based game php is not the right language for creating an online game. You'll want to code a code in java or actionscript (flash).
 
I'm pretty sure you two seem to be forgetting database driven games.

For instance, you could have a quiz based on a databank of questions. Or a management simulation (soccer ones are popular) involving details on the database. It's actually quite a good way of doing it - having a web-based front-end written in markup and PHP is easier in my mind than making your own GUI in programming language.

Just Googling, I've found a page of interesting links:

http://www.onlyscripts.com/pages/PHP/PHP_Scripts/Games/

Also, a Colorado-based company called VR1 were developing an online game called Lost Continents, a massive MMORPG based around SQL and C++. I think it got shelved, but it was thought it had massive potential.
 
The problem with PHP for games isn't in the PHP itself - PHP has a syntax very much like C, except that the variables are not typed - they are more like perl variables.

The problem is with the way browsers work. They have to request a refresh from the server, and every page is a fresh start - there are no variables stored by each user, unless you use cookies, or POST or GET all the variables you wish to retain whenever a user clicks on something to request a refresh.

So for simple question and answer games, or Adventure games where there's not much in the way of graphics, or for board games like chess or othello, PHP should be fine, but for more graphically demanding games, you need Flash or Java (Java applets, not Javascript).
 
timmay said:
For instance, you could have a quiz based on a databank of questions. Or a management simulation (soccer ones are popular) involving details on the database. It's actually quite a good way of doing it - having a web-based front-end written in markup and PHP is easier in my mind than making your own GUI in programming language.
After all it will depend on what game Aria wants to develop. With PHP the scope is too limited. The screen is updated with each request sent to the server, i.e. with a new HTML page. Thus text-based games or games where there is little interactivity/animation like chess or 'hang-the-duke' can be developed with PHP and a server side database like SQL.
 
Thread 'ChatGPT Examples, Good and Bad'
I've been experimenting with ChatGPT. Some results are good, some very very bad. I think examples can help expose the properties of this AI. Maybe you can post some of your favorite examples and tell us what they reveal about the properties of this AI. (I had problems with copy/paste of text and formatting, so I'm posting my examples as screen shots. That is a promising start. :smile: But then I provided values V=1, R1=1, R2=2, R3=3 and asked for the value of I. At first, it said...

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
Replies
2
Views
3K
Replies
7
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
8
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 11 ·
Replies
11
Views
3K