[dev] WG: Re: [PEAR-DEV] Would anyone find this useful?

Chuck Hagenbuch chuck at horde.org
Fri Mar 9 15:41:57 UTC 2007


Quoting Jan Schneider <jan at horde.org>:

> I haven't tried this yet, but it might be interesting for our cli  
> scripts too.
[snip]
> If you want to write portable code, /usr/bin/env is a safe choice.
> Instead of using #!/usr/bin/php you'd then use #!/usr/bin/env php, which
> will find the PHP binary in the $PATH environment for you.

It works well, it just doesn't work at all on Windows. Anything that's  
supposed to be cross platform needs to use the @php_bin@ substitution.

-chuck

-- 
"we are plastered to the windshield of the bus that is time." - Chris


More information about the dev mailing list