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

Jan Schneider jan at horde.org
Fri Mar 9 12:40:39 UTC 2007


I haven't tried this yet, but it might be interesting for our cli scripts too.

----- Weitergeleitete Nachricht von martin at divbyzero.net -----
      Datum: Wed, 7 Mar 2007 15:41:27 +0100
        Von: Martin Jansen <martin at divbyzero.net>
    Betreff: Re: [PEAR-DEV] Would anyone find this useful?
         An: bertrand Gugger <toggg at php.net>
         Cc: pear-dev at lists.php.net, David Sanders  
<dsanders at baselinesolutions.com.au>

On Wed Mar 07, 2007 at 12:5046PM +0100, bertrand Gugger wrote:
> Not sure how to do that without an absolute path to the php bin , though.

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.

- Martin

--
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


----- Ende der weitergeleiteten Nachricht -----


Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/
-------------- next part --------------
An embedded message was scrubbed...
From: Martin Jansen <martin at divbyzero.net>
Subject: Re: [PEAR-DEV] Would anyone find this useful?
Date: Wed, 7 Mar 2007 15:41:27 +0100
Size: 4409
Url: http://lists.horde.org/archives/dev/attachments/20070309/37da8bbf/attachment.mht 


More information about the dev mailing list