Re: Running Scripts from the Command Line in Linux

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 08/06/06, OOzy Pal <oozypal@xxxxxxxxx> 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) scriptname



2. 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!

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux