Show Posts
← Back to homepage

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.

About Guillermo Rauch:

CTO and co-founder of LearnBoost, developer, open source enthusiast, blogger.