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.

-Stut

Wouldn'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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to