here's a simple way <?echo "$_SERVER[REMOTE_ADDR]"?>
"Steve Yates" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > "Michael Delorme" <[EMAIL PROTECTED]> wrote > > However I only get 127.0.0.1 > > But I want the "public" dynamic adress my ISP gave me, > > Don't use localhost, that's always 127.0.0.1 by definition. You didn't > say what server you are using but if it's Apache try... > > getenv('SERVER_ADDR'); > or > gethostbynamel(getenv('HTTP_HOST')); > > phpinfo() should tell you what environment variables are available for your > server. > > - Steve Yates > - I have nothing against MS-DOS, stone knives, or bearskins. > > ~ Taglines by Taglinator - www.srtware.com ~ > > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php