On Saturday 09 February 2002 00:17, [EMAIL PROTECTED] wrote: > Thanks for the response, but those are just like $DOCUMENT_ROOT, they > provide paths in the server, I need what is showing up as the URL in the > browser - i.e. http://www.domain.com/script.php - or if there is no domain, > to give me the IP. > > any ideas? I can't seem to piece it together with the info from phpinfo() > either. > > It's so aggravating because the value of what I'm looking for is right on > screen, but I can't get the php to notice!
On my system (Apache + php module): 'http://' . $HTTP_SERVER_VARS['HTTP_HOST'] . $PHP_SELF gives the the url as displayed by the browser. But you seem to be using php as CGI so YMMV. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk /* Life is a grand adventure -- or it is nothing. -- Helen Keller */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php