Re: Windows ENV['_'] equivalent
| From: | Ed Lazor | Date: | Sat, 14 Oct 2006 16:11:50 +0000 |
| Subject: | Re: Windows ENV['_'] equivalent | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-243144@lists.php.net to get a copy of this message | ||
On Oct 14, 2006, at 2:09 AM, Stut 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. -StutWouldn't it be an easy task of PHP checking the results to see if file_exists? That would resolve the first part, but it might indirectly tell you whether you're using php.exe. If the file_exists fails, then you can probably assume you're using the dll. I know... a hacked solution, but maybe it will work? -Ed