Re: Changes to php.ini not being read through



Jack Lindamood wrote:
I moved php.ini to c:\windows and I called phpinfo:
Configuration File (php.ini) Path     C:\WINDOWS
I goto C:\windows and move it back to c:\php. Reload phpinfo:
Configuration File (php.ini) Path     C:\WINDOWS
Both clear my browser cache and try it with a different browser:
Configuration File (php.ini) Path     C:\WINDOWS
I goto c:\windows:
php.ini is not there anymore
Do an F3 search:
php.ini is only in c:\php
My extension directory line from phpinfo:
extension_dir C:\php5
My extension directory line from php.ini:
extension_dir = "c:\php\ext"
I do a search inside the file php.ini for the string "php5":
Cannot find "php5"

I don't believe I've done heavy editing to this file at all. Just changed the error reporting level. Shouldn't php complain if the file is corrupt? How could it be finding a phantom php file?

Thanks for the help,

Jack


Sean wrote:

Since php is not a service it should really be reading in the .ini file
each time it is called.

I would check the phpinfo file just to make sure that the location of
the ini file that is printed out there is the same one as the one I am
editing. (Called Configuration File Path).

If it is then I would changed the location of the php.ini file. If it
was in the folder c:\php then move it to the windows system dir and see
if that makes a difference or visa versa.

If the php.ini file has been edited heavily then download a new one and
see if that makes a difference. Just get it from the zip archive from
the latest release.

Hope that helps.


Did you restart your web server?

And please don't top post.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@xxxxxxxxxxxxx
==================
.



Relevant Pages

  • Re: php.ini errors?
    ... The Apache logs show nothing special, ... Move it back, fix anything you have done that caused phpinfo() to not display anything, and check in your phpinfo output which php.ini file you're using. ... Configuration File Path C:\Windows ...
    (comp.lang.php)
  • Re: Changes to php.ini not being read through
    ... Configuration File Path C:\WINDOWS I goto C:\windows and move it back to c:\php. ... My extension directory line from phpinfo: extension_dir C:\php5 ... Shouldn't php complain if the file is corrupt? ...
    (comp.lang.php)
  • Re: Changes to php.ini not being read through
    ... Configuration File Path C:\WINDOWS I goto C:\windows and move it back to c:\php. ... My extension directory line from phpinfo: extension_dir C:\php5 ... Shouldn't php complain if the file is corrupt? ...
    (comp.lang.php)
  • Re: How to use LDAP using PHP
    ... You may need to restart the web server if you're using mod_php. ... would double-check that the Configuration File Path setting ... shown by phpinfo() is the file that was updated... ... PHP.ini the changes were uncommenting LDAP and GD files. ...
    (comp.lang.php)
  • Re: Changes to php.ini not being read through
    ... Both clear my browser cache and try it with a different browser: ... I goto c:\windows: php.ini is not there anymore ... My extension directory line from phpinfo: extension_dir C:\php5 ... How could it be finding a phantom php file? ...
    (comp.lang.php)