RE: [PHP] Fwd: Get current URL

From: Date: Tue, 17 Oct 2000 08:16:21 +0000
Subject: RE: [PHP] Fwd: Get current URL
Groups: php.general 
Request: Send a blank email to php-general+get-20574@lists.php.net to get a copy of this message
Akk, I made a mistake, forever embedded in the mailing archives. Urgg. Mondays (thats my excuse, anyhow). Could also be the starbucks that opened downstairs as well, my typing is getting erratic. as is my heartbeat. too much coffee? naaah. Still checking php_info(); for the variables is also a good recommended tip. The manual also lists: The $HTTP_REFERER variable is not always set properly by all browsers, so beware if you're writing an application that depends on this! For example, the @home browser erroneously sends garbage when there is no referer. Also, my AOL customers tend to have problems with the referer, depending on which version of AOL you're running. So, if you want to protect your site (or content) by allowing only &quot;registered&quot; links to you, don't depend on the HTTP_REFERER ! Cheers, Lawrence -----Original Message----- From: Lawrence.Sheed@dfait-maeci.gc.ca [mailto:Lawrence.Sheed@dfait-maeci.gc.ca] Sent: October 17, 2000 03: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 (#20574) next »