You are here: Re: Path to php « PHP Programming Language « IT news, forums, messages
Re: Path to php

Posted by Mike Willbanks on 10/27/43 11:23

Csaba,
> Is there any way (on Windows) to determine, from within php, the
> directory that it is running from? In other words, what is the path to
> PHP? This particularly concerns the CLI php versions. On Linux, it
> has been suggested to do:
> which php
> but even this wouldn't help me since that would just show A php on the
> include path and not necessarily the currently executing instance.


The $_ENV["ORIG_SCRIPT_FILENAME"] if that variable exists for you...
Another way is if your extension dir is right off of the php root you
could simply back pedal from the extension dir setting :)

Mike

 

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

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