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]
|