Oh, forgot to add the "!" to the "#/usr/local/bin/php".. Since it's my
first time in shell scripting with php so I wasn't thinking correctly...
"Scott Fletcher" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi! I'm trying to run PHP as a shell script but I got the error
message.
BlackDex wrote:
Try to put this at top.
!/usr/local/bin/php
so change the # for a !, becous thas is what is used to execute scripts etc..
:).
not quite right: the shebang line requires both those chars :-)
http://dictionary.reference.com/search?q=shebang
"#!" used in Unix to mark the start of
Try to put this at top.
!/usr/local/bin/php
so change the # for a !, becous thas is what is used to execute scripts etc..
:).
Hoop it will work.
Kind Regards,
BlackDex
"Scott Fletcher" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> Hi! I'm trying to run PHP as a shell script but
3 matches
Mail list logo