How to run the php script from a command line?

http://www.php.net/images/logos/php-med-trans-light.gifIt can be useful sometimes to run a php script directly from a console.

For that you should install "php5-cli" with the command:

"Apt-get install php5-cli"

You will need to confirm the installation package and its dependencies.

Then to run a php script, you must enter the following command:
"Php scriptname"

0 comments:

Post a Comment