The PHP command accepts some interesting parameters which add flexibility to how scripts that you run from your shell or cron jobs are executed.
One of them is -d, which alters a php.ini value for the duration of the command. An example is as follows:
php5 -d memory_limit=128M symfony propel:data-load
This was a real time saver considering the server was not setup with a CLI-specific php.ini, like some are.
if ( comments_open() ) { ?>
3 Comments
Pingback: Gathering of Thoughts » Blog Archive » Writing a PHP command line script that takes options
Pingback: Gathering of Thoughts » Blog Archive » OS X Leopard command line tips and tricks
Thanks, it helps a lot.