Re: getting the path to the php executable

From: Date: Mon, 18 Mar 2002 04:56:02 +0000
Subject: Re: getting the path to the php executable
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-81410@lists.php.net to get a copy of this message
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 if that is a needed feature we better implement a useful solution. But is it really necessary? marcus

« previous php.dev (#81410) next »