php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10598 Windows Protocol & ini file placement
Submitted: 2001-05-02 03:17 UTC Modified: 2001-11-10 08:43 UTC
From: jtjohnston at courrier dot usherb dot ca Assigned:
Status: Closed Package: *Configuration Issues
PHP Version: 4.0.5 OS: Windows
Private report: No CVE-ID: None
 [2001-05-02 03:17 UTC] jtjohnston at courrier dot usherb dot ca
I've been running PHP with this:
http://www.php.net/do_download.php?download_file=php405-installer.exe&source_site=www.php.net

Basically, I have a problem with the placement of your php.ini. I would have thought, hoped it would run from the php directory as well as the windows directory. This is standard Windows protocol. A windows *.exe "normally" prioritises looking in the app directory and then in the windows directory for the location of *.ini files.

 Your Msvcrt.dll was installed in my network drive: t:\php\ and works like a charm; so should the php.ini!.

My at-work installation of windows is NT Server based and I don't have permissions to access D:\ntdir where NT was installed. I'm running a http microweb out of a separate directory and hoped to make use of PHP at work. I can't because I can't put the php in the windows directory. It won't work in my network drive: t:\php\php.ini
While my case may or may not be non-standard, your port to windows lack in basic *.ini protocol. It "should" look in the app directory to see if the ini exists there too! 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-02 03:56 UTC] brianlmoon@php.net
While I do agree with you that this is a pain, there is a possible solution assuming that you can set environment variables on your machine.  Set PHPRC to the path where the php.ini file is.  Then PHP will look there instead.
 [2001-10-20 19:23 UTC] sniper@php.net
Did the PHPRC environment variable help or not?

 [2001-11-10 08:43 UTC] sander@php.net
No feedback. Closing.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 08:01:28 2024 UTC