Game Development Community

Advanced 3d game programming all in one chap 13

by Dave chambers · in Torque Developer Network · 04/22/2009 (7:55 am) · 1 replies

I've been stuck for quite sometime on this and was hoping that someone could help.
Chapter 13 page 382 The PHP Authentication code. First off I noticed that the first line in the php code requires variables.php. There is no souce code for this on the cd, nore any mention of how to create this in the book. Need help to understand what I need to do with this.

I had thought that this had to do with the login information for mysql.

// Connect to server and select databse.
mysql_connect("localhost", "root", "xxxxxxx")or die("cannot connect");
mysql_select_db("xxxxxx")or die("cannot select DB");

-------------------------------------------------------------------

The second problem I noticed was adding in the server side script to game.cs.
in function checkClientLogin(%client, %username, %passcrc)

7th line down. %script = %path @ "game_login.php";
once as agin there is no game_login.php on the cd, nore is there any mention of what needs to be in this file. could use some help here as well.

I was thinking that this was just an error in the book and that insteed of game_login.php it should be authenticate.php?

And last of all the mysql dbase. If anyone has been able to get this to work I'd really apreate it if I could get a copy of the sql file. That or it would be nice if someone could show me the dbase structure.

with these three things missing I'm running around like a chicken with my head cut off. I uderstand some of each topic but not able to peice it all togeather at this point. That is not without some help. Hopefully someone can. vividzzz@hotmail.com

About the author

Recent Threads


#1
04/22/2009 (1:37 pm)
If you can't find a solution to those problems, you might want to take a look at this resource.
http://www.garagegames.com/community/resource/view/11552/