Re: Tried to run PHP as shell script and got the error...

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

 



Scott Fletcher wrote:
Hi!  I'm trying to run PHP as a shell script but I got the error message...
Source code below is ...

--snip--
#/usr/local/bin/php
<?
   echo "Hello World!!\n";
?>
--snip--

Your first line needs to have both the # and the ! (shebang)

#!/usr/local/bin/php

--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
john@xxxxxxxxxxxx

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[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