Re: Windows ENV['_'] equivalent
| From: | Stut | Date: | Sat, 14 Oct 2006 09:09:46 +0000 |
| Subject: | Re: Windows ENV['_'] equivalent | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-243127@lists.php.net to get a copy of this message | ||
Ed Lazor wrote:
On Oct 13, 2006, at 11:53 AM, Richard Lynch wrote:Unfortunately there's no guarantee that a) the working directory will be where the PHP binary is, or b) that the binary is called php.exe. Richard: AFAIK there is no way to know this under windows without writing an extension to tell you. -StutIn windows... There ain't nothing in phpinfo() that matches the php.exe which I'm running... How do you handle this?Not a solution, but an idea... the dos chdir comand. Maybe you can run it from within your script. It tells you the current working directory and you end up indirectly knowing the location of the php.exe that you're using.