October 19, 2018
Hot Topics:

PHP Command Line Scripting: Run Scripts from the Shell

  • January 5, 2011
  • By Glen Kunene
  • Send Email »
  • More Articles »

Did you know you can run PHP scripts from the command line using its command line interpreter (CLI) -- using your existing PHP language skills? Unless you use tools such as PHPDoc, Phing, or PHPUnit, you may not have been aware of this capability. In his PHPBuilder article Running PHP and Zend Framework Scripts from the Command Line, Jason Gilmore explains what you've been missing if you haven't yet used command line scripting in PHP. He writes:

PHP is configured with both execution duration and memory consumption limitations of 30 seconds and 128MB, respectively ... Therefore, you should use PHP's CLI when you need to complete tasks that could conceivably surpass these limits, because the CLI takes neither limitation into account.

In addition to demonstrating how to run PHP scripts from the shell with CLI, Jason also walks through the process of running Zend Framework-integrated CLI scripts in conjunction with an existing Zend Framework-driven website.


Read the full story at PHPBuilder:
Running PHP and Zend Framework Scripts from the Command Line

Originally published on https://www.developer.com.

Comment and Contribute


(Maximum characters: 1200). You have characters left.



Enterprise Development Update

Don't miss an article. Subscribe to our newsletter below.

By submitting your information, you agree that developer.com may send you developer offers via email, phone and text message, as well as email offers about other products and services that developer believes may be of interest to you. developer will process your information in accordance with the Quinstreet Privacy Policy.


Thanks for your registration, follow us on our social networks to keep up-to-date