This is a discussion on Command Line Interface doesn't output errors within the alt.comp.lang.php forums, part of the PHP Programming Forums category; I am running PHP 5.0.4 (cli) (built: Feb 21 2007 14:03:01) on Mandriva2006 When running from ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I am running PHP 5.0.4 (cli) (built: Feb 21 2007 14:03:01) on Mandriva2006
When running from the command line I don't get a list of errors. i.e. php -l foo.php outputs Errors parsing foo.php When running under windows XP I get details of the actual error and line number. How do I get the same information in Linux? T.I.A. Carlton. |
|
|||
|
Carlton wrote:
> I am running PHP 5.0.4 (cli) (built: Feb 21 2007 14:03:01) on Mandriva2006 > When running from the command line I don't get a list of errors. > i.e. php -l foo.php outputs Errors parsing foo.php > When running under windows XP I get details of the actual error and line > number. > How do I get the same information in Linux? > T.I.A. Carlton. Use php -i to find the path of your php.ini file and the look for the error_reporting and display_errors settings. If you like the settings on your Windows box, copy them to your Linux system. As always, you can look it up in the PHP documentation if you want to optimize your settings. |