How to run the php script from a command line? 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"


Post a Comment