You are here: Re: Which PHP am I running? « PHP Programming Language « IT news, forums, messages
Re: Which PHP am I running?

Posted by Csaba Gabor on 12/05/71 11:52

Chung Leong wrote:
> 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.

Loading in a COM object is fine by me, but would you clarify your
remark, please, as to which one to load and how to use it. Or are you
talking about a 3rd party COM object that one must purchase?

> > 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.

Hmm, I'm just wondering about the relationship between the console
window (if it opens) and php. At any rate, thanks for your comments.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация