I think what'll you'll need to do is look through the phpinfo() output and piece together all the parts, eg $HTTP_HOST (or should that be $_HTTP["HOST"] ?), $PHP_SELF, etc.
If anyone knows of a better way, I'd like to know too Martin -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 3:37 PM To: [EMAIL PROTECTED] Subject: [PHP] determining script url Hi all, How can I get the full URL of the currently running script? $DOCUMENT_ROOT is not what I need, instead I need the url (be it domain if exists, or ip if not). $SERVER_NAME works but if a domain isn't paired with the server, I could get some useless information (right?). Thanks, Sean -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php