RE: [PHP] determining script url

From: Date: Fri, 08 Feb 2002 08:59:49 +0000
Subject: RE: [PHP] determining script url
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-83978@lists.php.net to get a copy of this message
> 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?). $SCRIPT_NAME or $SCRIPT_FILENAME See http://uk.php.net/manual/en/language.variables.predefined.php For more details m:

« previous php.general (#83978) next »