Re: [PHP] Getting a dynamic IP address

2003-01-16 Thread Danny Shepherd
$_SERVER['SERVER_ADDR'] gives the address of the server running the php script $_SERVER['REMOTE_ADDR'] gives the client address or the proxy address. (be careful here, storing a proxy's IP is next to useless) $_SERVER[' HTTP_X_FORWARDED_FOR'] gives the client address if they're behind a proxy (if t

Re: [PHP] Getting a dynamic IP address

2003-01-16 Thread Chris Hayes
At 00:41 16-1-2003, you wrote: Hello all, Newbie here I need to know if there is a way I can get my dynamic IP address for use in a php script? -- There are loads of variables in the arrays $_SERVER and $_ENV, dump these arrays and see if there is something in it that you can use. Maybe y

Re: [PHP] Getting a dynamic IP address

2003-01-16 Thread Marek Kilimajer
it is stored in $_SERVER["SERVER_ADDR"] Kyle Lampkin wrote: Hello all, Newbie here I need to know if there is a way I can get my dynamic IP address for use in a php script? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php