Re: Running Scripts from the Command Line in Linux
| From: | Dave Goodchild | Date: | Thu, 08 Jun 2006 12:25:10 +0000 |
| Subject: | Re: Running Scripts from the Command Line in Linux | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-237603@lists.php.net to get a copy of this message | ||
On 08/06/06, OOzy Pal <oozypal@gmail.com> wrote:
How can I run a .php script from the command in Linux? 1. run /usr/local/bin/php (or wherever the php binary is, run which php to find out) scriptname2. add the hash bang to the start of the script and run it by typing the scriptname. -- http://www.web-buddha.co.uk dynamic web programming from Reigate, Surrey UK (php, mysql, xhtml, css) look out for project karma, our new venture, coming soon!