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

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

 



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--

Attempt to run the file below and got the error

--snip--
-=[/usr/local/bin]==>./ecbi_inquiry_pull_experian.sh
Hello World!!\n
./ecbi_inquiry_pull_experian.sh: line 4: syntax error near unexpected token
`?>'
./ecbi_inquiry_pull_experian.sh: line 4: `?>'
--snip--

I checked to see if there's no spaces at the end on line 4 and there
isn't...  So, how do I get it working so I can hook up the file to the
crontab.

Thanks,
 FletchSOD

-- 
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