Posted by Bertman on 10/07/31 11:12
Hello,
I get an error with a lot off php pages. Most common error is: Undefined
variable. I know how to solve it, by using 'isset', but I have it with
existing scripts like PHPnuke. I also can solve it by changing
'error_reporting' but then something would work on the PHPnuke portal. So I
have to find a good solution.
I did a little test, I downloaded and installed MSAS (Mambo Stand Alone
Server). And on my own server I had made a little php file with this text:
<?php
if ($httpref==1) { }
?>
And I get the error:
Notice: Undefined variable: httpref in
D:\Apache\Apache2\htdocs\vakd\website\test\test.php on line 2
I tried it on the MSAS server and I didn't get an error. So I tried to find
a different between php.ini and httpd.conf. But I didn't saw a real
different.
Does anyone has an idea ?
I have:
Windows 2000
Apache 2.0.53
PHP 4.3.10
Bertman
[Back to original message]
|