Задай въпрос

How many html files would a php game need?

Freack - 2010-01-23 17:37:04 - Programming Design

I am learning HTML and php. I also have an idea for a game which I might make. Would I need an HTML file for every php file or would I just need a few HTML files for things like a login page and the game interface. I remember in php it said the text in the script would appear on the page.


Най-добър отговор:

You can do things in php without having any html files at all. You can write the php code to send out the appropriate html for all situations. Jump into some php tutorials for beginners and you'll see what I mean as you go along.

Други отговори:

Globyy - 2010-01-23 17:51:07
Theoretically you could have 1 php page that holds everything for your game, and just call on php methods/functions...however this is considered a sloppy programming style and it would be much more readable/organized if you had different php files for each portion of the game, and equally the same for html files.

Paul W - 2010-01-23 18:22:17
You can do things in php without having any html files at all. You can write the php code to send out the appropriate html for all situations. Jump into some php tutorials for beginners and you'll see what I mean as you go along.

shrimpwagon - 2010-01-23 18:48:58
Globyy has a good point. I see this question on Yahoo Answers a lot. I will tell you from expert experience that PHP is NOT good for games at all. PHP does not do anything that is interactive on a clients computer. You are better off using Flash or even JavaScript. PHP only serves the HTML to a clients browser. It can do other things besides that, but offering a gaming experience is not a strong point of PHP.


map google sitemap
© 2008 PitaiMe.Com Питай Ме
Игри Благодарение на yahoo answer
All Recreation | Breast Enlargement | Debt Help | WoW Gold | House Insurance