Re: Would anyone find this useful?

From: Date: Wed, 07 Mar 2007 11:50:46 +0000
Subject: Re: Would anyone find this useful?
References: 1 2 3 4 5  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-45837@lists.php.net to get a copy of this message
David Sanders wrote:
ok, that solves that issue... but is there a way execute the php file in a source-style fashion?
I've thought about this, but the environment variable needs to be set... Is it possible to do that from a php script?
putenv() .. http://www.php.net/putenv
You can always put a php shebang as #!/usr/bin/php <?php phpinfo(); ?> in top of your executable script, I guess. Not sure how to do that without an absolute path to the php bin , though. -- toggg

« previous php.pear.dev (#45837) next »