Re: Get your *own* IP...?!

From: Date: Mon, 06 Jan 2003 21:21:51 +0000
Subject: Re: Get your *own* IP...?!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-130489@lists.php.net to get a copy of this message
Use the super-global variable $_SERVER['SERVER_ADDR'] (or another solution might be to generate relative, rather than absolute, URLs: /somedir/somepage.php instead of http://192.168.1.1/somedir/somepage.php) On 1/6/03 12:45 PM, "Charles likes PHP" <charles2u@hotpop.com> wrote: > Does anyone know a way to fetch your own IP-adress? I need it because I run > a web server on my computer with a dynamic-IP so I need it to change all the > URLs it creates dynamically... > > Thanks! > > -Charles > > -- Tracy F. Rotton tracy@taupecat.com http://www.taupecat.com/ "... I like the 49ers because they're pure of heart, Seattle because they've got something to prove, and the Raiders because they always cheat." -- Lisa Simpson, "Lisa the Greek"

« previous php.general (#130489) next »