Re: Getting a dynamic IP address

From: Date: Thu, 16 Jan 2003 16:06:26 +0000
Subject: Re: Getting a dynamic IP address
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-131887@lists.php.net to get a copy of this message
$_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" <KyleTexan62@netscape.net> To: <php-general@lists.php.net> 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 >

« previous php.general (#131887) next »