|
Posted by Chung Leong on 12/13/34 11:52
Csaba Gabor wrote:
> Is there a way to determine the path to the php executable (as opposed
> to the script. In other words, I am looking for the path to php.exe or
> php-win.exe) that is currently running (ie. how was this script called)
> on Windows (I'm on Win XP Pro)? WScript/CScript (when programming in
> VBScript) allow this, for example.
As far as I know there is no way, unless you load in a COM object.
> Failing that, is there any way to conclusively determine whether the
> script that is running was invoked from php.exe or php-win.exe? I say
> conclusively, because often there is a slight difference in the
> environment variables, but it need not be the case.
No, the only difference between php.exe and php-win.exe is whether a
console window opens or not and you can't detect that programmatically.
[Back to original message]
|