No such thing as a small change | |
PerlMonks |
Re: OT: from perl to phpby weierophinney (Pilgrim) |
on Mar 26, 2006 at 23:40 UTC ( [id://539326]=note: print w/replies, xml ) | Need Help?? |
To achieve what you want, you need to do a few things.
First, warnings. There are several ways to affect this. The INI key you're looking for is error_reporting, and you want it set to E_ALL (or, in PHP5, E_ALL | E_STRICT). You can do this by:
Finally, "php --help" gives you the above options, and more. As to the INI settings, look in the provided php.ini files, as they are very well commented. Update: You can also pass INI settings via the CLI option '-d'. If you want E_ALL (2047) and E_STRICT (2048), and to display errors, try the following: php -d "error_reporting=4095" -d "display-errors=On" myscript.php.
In Section
Seekers of Perl Wisdom
|
|