Re: phpinfo() - strange results...



"Brian Huether" <bhuetherNO@xxxxxxxxxxxxxxx> 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.


.



Relevant Pages

  • RE: Adding Links to WorkItems using WorkItems.xml
    ... SharePoint Services" folder in process template folder when a new project ... specify one or more tasks and their dependencies. ... Microsoft Online Community Support ...
    (microsoft.public.vsnet.enterprise.tools)
  • RE: Idiot_self+trojans+administrative privs = Disaster
    ... Use CACLS to get access to the system volume folder to delete the ... /G user:perm Grant specified user access rights. ... Wildcards can be used to specify more that one file in a command. ... %windir%\Network Diagnostic\xpnetdiag.exe (file missing) ...
    (Security-Basics)
  • Re: Make folder with accompanying shortcut if possible
    ... (Filename can be a filename, ... Traverse Folder / Execute File ... /P user:perm;spec Replace specified user's access rights. ... Wildcard characters can be used to specify more than one file in a command, ...
    (microsoft.public.scripting.vbscript)
  • Re: How specify location for automatically recovered documents in Word 2004?
    ... Specify a location for automatically recovered documents ... To specify a location for automatically recovered documents, ... double-click a different folder in the folder list. ... > longer find in scrolling and searching subject lines in this newsgroup) ...
    (microsoft.public.mac.office.word)
  • Re: Separate default location for picture files?
    ... Suzanne S. Barnhill ... > Anyone know how to completely remove the Clipart pictures path from ... it uses the last-opened folder. ...
    (microsoft.public.word.docmanagement)