PDA

View Full Version : Help all the php-ers out there



wats120
January 15th, 2006, 08:28 PM
i made a pretty cool rpg with
Stats
trade skills
Attacks
Baddies

all the good stuff. but how do you script a php login where you can create and resume your game using a username and password?

all i need is to save and load some variables? how you do it?
??????

jerez_z
January 16th, 2006, 12:57 AM
mysql is the answer. That and the xml object (look at the send/load functions). Assuming you made the game in flash

Gawain
January 16th, 2006, 07:27 AM
MySQL is definatly the best way to go if you have that option. If not, you could settle for using cookies. That would "force" players to play from the same computer every time though. And if they were to empty out their browser cache it's bye-bye savegame. So if you have the luxury of MySQL available on your server, go for it.

signifer123
January 16th, 2006, 08:28 AM
Of you can have fun with delimeted files, xml files, jsut remember to encrypt stuff and hash passwords(not the key kind use md5 and sha in combo to make it extra hard)

wats120
January 17th, 2006, 09:42 PM
thanks guys ill see if i can find a couple tuts on my sql

cause im a noob at it

expensive_pen
January 17th, 2006, 11:57 PM
remember to encrypt stuff and hash passwords(not the key kind use md5 and sha in combo to make it extra hard)
seems a little overkill for for flash video game

jerez_z
January 18th, 2006, 12:02 AM
seems a little overkill for for flash video gameits just a good habit to have. Besides you don't want to have access to everyones regular password.