|
Posted by Pro N00b on 04/04/05 16:48
Bertman wrote:
> 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.
I copy/pasted this from the php.ini in Fedora Core 3. It's a comment
about the php setting error_reporting. See php.net/error_reporting for
more information
; - error_reporting = E_ALL [Code Cleanliness, Security(?)]
; By default, PHP surpresses errors of type E_NOTICE. These error
messages
; are emitted for non-critical errors, but that could be a symptom
of a bigger
; problem. Most notably, this will cause error messages about the use
; of uninitialized variables to be displayed.
Navigation:
[Reply to this message]
|