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

In summary: But for games with more graphics, interaction and animation (MMORPGs, adventure games, shooters, etc), then a language like Java or Flash would be better.
  • #1
Aria
1
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
  • #2
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.
 
  • #3
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).
 
  • #4
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.
 
  • #5
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).
 
  • #6
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.
 

1. What is Php?

Php is a server-side scripting language that is used to create dynamic and interactive web pages. It is commonly used for building websites and web applications.

2. What is coding games?

Coding games are interactive games that are created using programming languages like Javascript, Python, or Php. These games can be played online or downloaded onto a computer or mobile device.

3. How do I learn Php?

There are many resources available to learn Php, including online tutorials, courses, and books. It is important to have a basic understanding of programming concepts before diving into Php. Practice and hands-on experience are also crucial in learning Php.

4. Can I make a career out of coding games?

Yes, you can make a career out of coding games. Many companies and organizations are constantly looking for skilled game developers to create and maintain their games. It is important to have a strong understanding of programming languages and game design principles to be successful in this field.

5. Is coding games difficult?

Coding games can be challenging, especially for beginners. However, with dedication and practice, anyone can learn to code games. It is important to start with simple games and gradually work your way up to more complex ones.

Similar threads

  • STEM Career Guidance
Replies
4
Views
1K
Replies
2
Views
863
Replies
1
Views
221
  • Programming and Computer Science
Replies
11
Views
1K
Replies
8
Views
907
Replies
2
Views
541
  • Set Theory, Logic, Probability, Statistics
Replies
3
Views
1K
Replies
40
Views
2K
  • STEM Academic Advising
Replies
11
Views
1K
  • Astronomy and Astrophysics
Replies
2
Views
1K
Back
Top