Re: missing HTTP_REFERER... (defining globals etc.)

From: Date: Tue, 04 Jul 2000 11:24:34 +0000
Subject: Re: missing HTTP_REFERER... (defining globals etc.)
Groups: php.general 
Request: Send a blank email to php-general+get-4717@lists.php.net to get a copy of this message
Hi Maarten The variable $HTTP_REFERER is only set, when there *is* a referer page. That means, if you type an URL directly into the URL line in your browser, $HTTP_REFERER will be empty. And don't forget: php variables have a prefixed $ sign, also $HTTP_REFERER. HTH --Steff Hi, on our site http://gardens.samhoud.nl i get the following error on trying to insert http_referer into a db. "Warning: Undefined variable: HTTP_REFERER in /www/vhost_samhoud.nl.gardens/htdocs/index.php on line 22" I put a test.php on http://gardens.samhoud.nl/test.php to look at, and that doesn't show the referer listed either.. If it is empty, it should be listed as such, but it's nowhere to be found. I can define it as empty, or use it earlier on in a ifset(), and then it works fine, but is this how it should be? Maarten Stolte www.DoWebWeDo.com -- 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 (#4717) next »