Re: php-cli

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

 



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@xxxxxxxx    http://www.niof.net

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