On Mon, Mar 18, 2002 at 05:56:02AM +0100, Marcus B?rger wrote: > At 05:11 18.03.2002, you wrote: > >is there a way to get the path of the current php executable for the cli > >and cgi sapi implementations? this would be nice so that run-tests.php > >could run its subprocesses with the same executable that it was run with > >(so you could run the tests with a particular php executable without > >having to make sure it is the one that the code inside run-tests.php > >picks up). > > In CLI you can pass that information from command line > > $ /t/php-cvs/php -r 'echo $argv[1];' -- `(pwd)` > /home/marcus
this is not what i was looking for. i'm looking for the equivalent to perl's $^X (or $EXECUTABLE_NAME for people that like to 'use English'). (this would be the '/t/php-cvs/php' from your example.) > if that is a needed feature we better implement a useful solution. > But is it really necessary? i don't expect that would be a widely-used feature, but for the specific case i've outlined (running tests using the same php binary from the run-tests.php script), it would be useful. i'm sure there are more instances in which it would be useful information. jim -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php