Posted by Dr. No on 03/14/07 16:44
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.
Navigation:
[Reply to this message]
|