RE: [PHP] Fwd: Get current URL

From: Date: Tue, 17 Oct 2000 08:10:39 +0000
Subject: RE: [PHP] Fwd: Get current URL
Groups: php.general 
Request: Send a blank email to php-general+get-20573@lists.php.net to get a copy of this message
Nope, you're wrong.. it's $HTTP_REFERER, however what he asked was 'current url' and not 'previous url' so I guess that $HTTP_HOST.$SCRIPT_NAME is exactly the current URL, or $HTTP_HOST.$REQUEST_URI if you want variables too... (there might be a need to play with this string, but the result should be OK) Cheers! -----Original Message----- From: Lawrence.Sheed@dfait-maeci.gc.ca [mailto:Lawrence.Sheed@dfait-maeci.gc.ca] Sent: Tuesday, October 17, 2000 4:59 PM To: mathijs@max.nl Cc: php-general@lists.php.net Subject: RE: [PHP] Fwd: Get current URL Probably because you spelt it wrong ;) not HTTP_REFERER ^ would work as... echo "http referrer: " . $HTTP_REFERRER; Why not do a <? phpinfo(); ?> then look through the fields for the spelling of the vars. cheers, Loz. -----Original Message----- From: Mathijs Dijk [mailto:mathijs@max.nl] Sent: October 17, 2000 03:58 PM To: php-general@lists.php.net Subject: [PHP] Fwd: Get current URL ---------- Forwarded Message ---------- Subject: Get current URL Date: Tue, 17 Oct 2000 09:52:45 +0200 From: Mathijs Dijk <mathijs@max.nl> Hi, I have a tiny anoying problem. I can't get the current URL. I've tried : - get_env(HTTP_REFERER) & get_env($HTTP_REFERER) - javascript:history.back(0) - putting '#' in AHREF none of these try-outs worked... Can you help me?? Mathijs Dijk Max Internet Publishing ------------------------------------------------------- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#20573) next »