Re: [PHP] php-cli

[email protected] (Rick Pasotto)
Newsgroups php.general
Message-ID <[email protected]>
On Mon, Mar 15, 2010 at 02:35:54PM +1300, Dmitry Ruban wrote:
> 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'.
> >
> 
> It sounds like you may use short tags "<?" and short_open_tag is off
> in your cli php.ini

Thank you. That was the problem.

Looks like I've got a habit to change and a lot of file maintenance to do.

-- 
"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    [email protected]    http://www.niof.net
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.