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" <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED] 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" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php