RE: [PHP] Obtaing the URL of current page

From: Date: Thu, 26 Feb 2004 15:36:49 +0000
Subject: RE: [PHP] Obtaing the URL of current page
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-178943@lists.php.net to get a copy of this message
To be totally accurate -- 1. $QUERY_STRING would only work with register_globals on. If register_globals is off, use $_SERVER["QUERY_STRING"]. 2. I suppose you would also need the hostname. This can be obtained form $_SERVER["HTTP_HOST"]. Again, with register_globals on $HTTP_HOST may be used. Shaunak > -----Original Message----- > From: Shaunak Kashyap [mailto:skashyap@intertechmedia.com] > Sent: Thursday, February 26, 2004 10:29 AM > To: php-general@lists.php.net > Subject: RE: [PHP] Obtaing the URL of current page > > > url: $PHP_SELF > get variables: $QUERY_STRING > > Shaunak > > > -----Original Message----- > > From: Shaun [mailto:shaun@mania.plus.com] > > Sent: Thursday, February 26, 2004 10:31 AM > > To: php-general@lists.php.net > > Subject: [PHP] Obtaing the URL of current page > > > > > > Hi, > > > > How can i obtain the URL of the current page including any $_GET > > variables? > > > > Thanks for your help > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#178943) next »