I have two questions, first how do you get a persons IP address in flash like you did on your site?And secondly i need help with a php login. Ive been trying to find out how to make a flash login to PHPBB which is a php bulletin board which is tied to a mySQL database. Only, i dont have very much knowledge of php so in the login.php file i have no idea h0w to import the username and password variables into flash. Heres the login.php source file…
Thanks a bunch…
o yeah here
Hey there!
The answer to your first question is pretty easy. It’s one line of code:
$ip = $HTTP_SERVER_VARS["REMOTE_ADDR"];
//then you can print it to Flash however you want:
print "&flashvar=".$ip;
The other question, I’m afraid I’m not sure. I’ve actually just started in PHP about a couple months ago and am still kinda new. Did you by chance read the tut I did on authentication?
http://www.kirupa.com/developer/actionscript/authentication.htm
It doesn’t use session ID’s; I’m not too sure how to do that yet. I have (on my favorites list) a bunch of links to PHP login stuff. I’ll post some of them. Maybe that tut will help you, I know it’s kind of simple, but it does do the job.