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

Click For Summary

Discussion Overview

The discussion revolves around the feasibility of developing online games using PHP and SQL. Participants explore the necessary knowledge for such a project and suggest examples of games that could be created within this framework, while also debating the limitations and suitability of PHP for game development.

Discussion Character

  • Debate/contested
  • Exploratory
  • Technical explanation

Main Points Raised

  • One participant expresses interest in creating an online game with PHP and SQL, seeking advice and examples.
  • Another participant argues that PHP is not suitable for game development, suggesting that it is better suited for dynamic web applications rather than games.
  • Some participants propose that database-driven games, such as quizzes or management simulations, could be effectively developed using PHP and SQL.
  • Concerns are raised about the limitations of PHP due to the nature of web browsers requiring page refreshes, which could hinder the development of more interactive or graphically demanding games.
  • It is noted that PHP could be adequate for simpler games, such as text-based games or board games, but more complex games would require technologies like Flash or Java.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the suitability of PHP for game development. While some suggest that it can work for certain types of games, others strongly argue against its use for more complex game designs.

Contextual Notes

Limitations include the dependency on server requests for each game action, which may restrict the interactivity and responsiveness of games developed with PHP.

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.
 

Similar threads

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