LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Fedora PHP5 Debugging (https://www.linuxquestions.org/questions/linux-software-2/fedora-php5-debugging-581033/)

nan0meter 08-30-2007 01:37 PM

Fedora PHP5 Debugging
 
I run an apache2 server on Fedora 7 x86_64 with php5. Everything is running fine but i can't see any debug output if there are any errors. In my script i tried setting error_reporting(E_ALL) but that makes no difference. For example this normally would give an error but now i got a blank page:

Code:

<?php
    echo($foo); // $foo is not declared error?
?>

Everything works fine though when there are no errors in the script. I guess debugging mode is off but i don't know how to enable it. Sorry i have to admit, i'm a bit lazy but maybe someone had the same and fixed it you know :)

reddazz 08-30-2007 04:53 PM

You need to edit your php.ini file and enable the option to display errors.

nan0meter 08-30-2007 05:25 PM

Lol found it, line 365 for the one's who are interested :)

Code:

display_errors = On


All times are GMT -5. The time now is 11:47 AM.