re: [PHP-DEV] patch to make for better shell scripting
Addressed to: php-dev@lists.php.net
"Brian Moon" <brianm@dealnews.com>
> Well, here is my patch finally for enabling a shell mode with the
> command line.
> Mainly this patch adds a -S option that will turn off html errors,
> error_prepend_string, error_append_string, and output buffering.
> This will keep people from having to maintain two ini files.
Please consider adding the function of
set_time_limit( 0 );
to the -S option, usually when I run PHP from the command line I am not
worried about how long it takes to run. Long running programs are one
of the common reasons for running PHP from the command line. If you
want a command line script to time out you can set the time limit in
your program.
Thanks,
Rick
Rick Widmer
Internet Marketing Specialists
http://www.developersdesk.com
Thread (9 messages)