anyone use "php"?

Narz

keeping it real
Joined
Jun 1, 2002
Messages
31,514
Location
Haverhill, UK
Anyone here use PHP? I want to make some games and started to learn C++ but my friend told me I'd save myself alot of time and energy (especially making graphics) if I learned PHP instead, he also said its better for my purposes because its cross-platform (I have a Mac). Has anyone designed anything with PHP, what do you think is the quickest way to learn? How powerful is it? Thanks!

- Narz :king:
 
Games in php? Your friend needs to pass along that good shee-it!

Stick to C++ for games. C++ is pretty portable, or you can go for Java for the best portability but a loss in speed. Better yet, move to Windows or Linux. ;)
 
Yeah- php is a web-based sorta language not many people are gonna have it handy installed on their HD to play games with it. But PHP rox in it's domain! I think of php has like open source king. :king: You'd find lots of stuff about it at like http://sourceforge.net
 
As stated PHP is a web-based language, pretty much like C. But it is dedicated to webdesign, design in general and database handling, not for programming things like an AI. :rolleyes:

www.php.net

That´s the official site with more information than you need.

Since it works like C++ you can of course use it to program a game or other software. But just take a look at the predefined function list. Compared to C that is SHORT, even tiny. You would need to implement most of your functions yourself.
Stick to C/C++ or change to Java if you want something platform independent.
:D
 
Anyone or anything... This forum (and most other forums software) uses PHP/ASP (or cgi for older ones)

PHP will give you a static result. It's not like if you were using java to create an interactive game. If you want to program games, you're going to have a framed result, as the server won't work in real time. PHP is mostly a web-design and web-feature language. You can't hope to make a nice game with it, though it would be, in theory, oossible. But from what I've read (I've never coded any C or C++) it's pretty much similar to C and C++ (at least the basics)

Related thread :

http://forums.civfanatics.com/showthread.php?s=&threadid=36581
 
Thanks for the info! My friend did make a simple game with it though I do want mine to be far more interactive. I'm still waiting for him to send me the source code...

Here's the link if you want to check it out, its kind of funny
http://www.kcalder.com/dwars/adduser.php

Note : You can just make up any username and password you want.

- Narz :king:
 
Back
Top Bottom