Re: [PHP] Getting a dynamic IP address
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
Re: [PHP] Getting a dynamic IP address
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 you can get a hint by running the ?PHP phpinfo() ? function. It will output loads of info. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Getting a dynamic IP address
$_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 this isn't set then they probably aren't behind a proxy so you can use the remote_addr instead) HTH Danny. - Original Message - From: Kyle Lampkin [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 15, 2003 11:41 PM Subject: [PHP] Getting a dynamic IP address 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? -- Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Getting a dynamic IP address
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? -- Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php