You are here: Re: phpinfo() - strange results... « PHP Programming Language « IT news, forums, messages
Re: phpinfo() - strange results...

Posted by Jim Carlock on 12/31/06 04:23

"Brian Huether" <bhuetherNO@comcastSPAM.net> wrote:
: Actually, even when httpd.conf says c:/php is the php.ini location,
: phpinfo says that c:/windows is Configuration File (php.ini) Path.
: Yet changing c:/windows/php.ini does not cause changes to phpinfo
: output. (It does change results if I specify c:/windows as ini path
: if httd.conf).

Hiya,

httpd.conf specifies where to load the php.dll for its use. Once
that's loaded, whenever a different library gets called, php looks
first in the folder the php.dll is installed. The list of paths
it searches, in the respective listed order...

(1) Directory containing the exe or dll.
(2) The current directory (this could vary as it could possibly
be the folder where a PHP is executing).
(3) The system folder (%systemroot%\system32).
(4) The %systemroot% folder (\Windows or \Winnt).
(5) The path environmental variable.

http://msdn.microsoft.com/library/en-us/vbcon98/html/vbcondeclaringdllprocedure.asp

..INI files SHOULD get searched for in much the same way,
so if WINDOWS finds it inside the folder with the DLL it stops
searching at that point and loads that one.

My own httpd.conf file doesn't specify a location for php.ini.
It ends up finding it in the %systemroot% folder.

The php.ini is laid out quite nicely and provides a way to specify
where extensions get loaded from.

extension_dir = "C:/php5/extensions"

and all the extensions get placed in that folder.

Hope this helps.

--
Jim Carlock
Post replies to the group.

 

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

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