Bluehost.com Web Hosting $6.95

Command Line Interface doesn't output errors

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 ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-14-2007
Carlton
 
Posts: n/a
Default Command Line Interface doesn't output errors

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.
Reply With Quote
  #2 (permalink)  
Old 03-14-2007
Dr. No
 
Posts: n/a
Default Re: Command Line Interface doesn't output errors

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.
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 06:32 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0