Empty

Total: £0.00

Running PHP scripts from the command line in Ubuntu 10.04

By marksams, 06/02/2011 - 20:02

I had an existing php script that I wanted to run from the command line.

 

First I had to install php5 and php-cli..


  • sudo apt-get install php5
  • sudo apt-get install php5-cli

 

...then I was able to run my script as follows:


  • sudo /usr/bin/php5 /path/to/script.php
Tags: