Re: php-cli
| From: | Ashley Sheridan | Date: | Mon, 15 Mar 2010 01:28:31 +0000 |
| Subject: | Re: php-cli | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-302822@lists.php.net to get a copy of this message | ||
On Sun, 2010-03-14 at 21:24 -0400, Rick Pasotto wrote:
> On Mon, Mar 15, 2010 at 01:32:24PM +1300, Dmitry Ruban wrote:
> > Rick Pasotto wrote:
> > >
> > >I repeat: is there more than one way to run a php script from the cli?
> > >
> >
> > On *nix, you can add "#!/usr/bin/php" as first line and make file
> > executable (chmod +x).
>
> Functionally the same. php is still interpreting the script. The script
> is still not an executable.
>
> And, of course, the results are the same.
>
> The problem is that php is *not* interpreting the script. It's acting
> like 'cat'.
>
> --
> "There are two tragedies in life. One is to lose your heart's desire.
> The other is to gain it." -- George Bernard Shaw
> Rick Pasotto rick@niof.net http://www.niof.net
>
Have you looked at the error log? Is the php-cli package installed
correctly?
Thanks,
Ash
http://www.ashleysheridan.co.uk