Re: Would anyone find this useful?
| From: | Martin Jansen | Date: | Wed, 07 Mar 2007 14:41:27 +0000 |
| Subject: | Re: Would anyone find this useful? | ||
| References: | 1 2 3 4 5 6 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-45839@lists.php.net to get a copy of this message | ||
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