CHAPTER 16 - PHP CLI SHELL SCRIPTS

26 views

The CLI version of PHP is meant for writing standalone shell-scripts running
independently from any web server. As of PHP 4.3.0, the CLI version of PHP
is installed by default, alongside whatever web server interface you choose to
install.
It has been possible to write shell scripts using the CGI version of PHP
since PHP 3.0, but a number of workarounds had to be added to make CGI
better suited for this, such as the ­q option to silence headers. During PHP 4’s
development, it became apparent that a separate command-line version of
PHP was needed to keep CGI clean, and CLI has been distributed since 4.2.0.
This has not stopped people from writing PHP shell scripts, but CLI is
more accessible (because it is always installed) and consistent (it’s designed
for this job).



« CHAPTER 16 - PHP Shell Scripting CHAPTER 16 - How CLI Differs From CGI »
Posted on Thursday, June 7th, 2007 at 1:23 pm under PHP 5 Power Programming | RSS 2.0 Feed

Post Comment

You must be logged in to post a comment.



ComputerEducationWorld.com All Rights Reserved © RSS | CBSE | Education Boards Of India | What is My IP?