You are here: Re: [PHP] Tried to run PHP as shell script and got the error... « PHP « IT news, forums, messages
Re: [PHP] Tried to run PHP as shell script and got the error...

Posted by John Nichel on 10/04/77 11:10

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@kegworks.com

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация