You are here: Re: Command Line Interface doesn't output errors « PHP Language « IT news, forums, messages
Re: Command Line Interface doesn't output errors

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация