You are here: Re: error_log : $_COOKIE "Undefined index" "PHP Notice" « PHP Programming Language « IT news, forums, messages
Re: error_log : $_COOKIE "Undefined index" "PHP Notice"

Posted by Michael Fesser on 12/07/07 15:58

..oO(Pseudonyme)

>We are using Linux-Apache-Fedora-Httpd 2006 configuration.
>
>The PHP lines code that lead too tons of errors are :
>
>$http_ref= $HTTP_REFERER;

Should be

$http_ref = $_SERVER['HTTP_REFERER'];

Also remember that the referrer might be empty or faked.

>$prog = $_COOKIE['cpm'."$j"];
>$redirect .='Location:'.$uploadpath;
>
>We believe HTTPD does not understand environement variables.

This has nothing to do with environment variables.

>We had to put that : error_reporting(0); in the top of the file to get
>the errors stop to be reported.
>
>An expert said to insert an isset funtion :
>http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/PHP_Installation/Q_21354370.html
>
>But that doeas lead to a success.
>
>From your background and experience, how do you think we can fix up
>the code ?

First you should post the _exact_ and _complete_ error messages. Your
message subject says nothing really helpful.

Micha

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация