At 12:27 AM 1/12/2012, Haluk Karamete wrote:
Because I got this


I end up with this

Notice: Undefined index: HTTP_REFERER in
D:\Hosting\5291100\html\blueprint\bp_library.php on line 16

Now, this is of course after the <?php error_reporting (E_ALL); ?>  change.

One solution is to dodge it by


The better way to avoid the error is to do something like

echo (isset($_SERVER['HTTP_REFERER']))?$_SERVER['HTTP_REFERER']:'No referrer set';

Which checks to see if it's set before echoing the value. If it's not set, you get a message saying so.


PHP General Mailing List (
To unsubscribe, visit:

Reply via email to