Re: Changes to php.ini file have no effect

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thank you.

I checked, and my phpinfo says my ini file should be in c:\php and that's where it is. Furthermore, and this is confusing me, when I look at PHP info it says for example that Display_Errors is on, but when I look in the ini file it is clearly off. Restarting Apache and restarting the whole machine has no effect on this. Also, it says sendmail_from is not set, and it definitely is set.

Any further suggestions?

Jim McDonald wrote:
Definitely check the phpinfo() to verify that your path to the php.ini
file is valid.  PHP loads with default values in the event it cannot
find php.ini.  In windows, it looks in C:\Windows as the default
directory.  If, like me, you don't like moving your PHP files around,
then you will need to set an Environment Variable PHPRC with the correct
path -- especially useful if you have your web site on a different
drive.

-jim
-----Original Message-----
From: Wayne Khan [mailto:kzhiwei@xxxxxxxxxxxxxx] Sent: Tuesday, November 29, 2005 4:19 AM
To: php-windows@xxxxxxxxxxxxx
Subject: RE:  Changes to php.ini file have no effect

You can use phpinfo() and look for the entry "Configuration File
(php.ini) Path"... Not sure if an error or hacker can do so, but maybe
its possible.

Windows Apache runs PHP as as a module; have you tried simply restarting
the webserver?
Wayne

-----Original Message-----
From: Charlie Wong [mailto:cwong@xxxxxxxxxxxxxxxx]
Sent: Tuesday, 29 November 2005 8:44 AM
To: php-windows@xxxxxxxxxxxxx
Subject:  Changes to php.ini file have no effect

Hi Everyone, please excuse me if this post breaks protocols in any way,
since I'm new to this.

I've been running a php-nuke site for some time, but recently it started
acting funny. I made some changes to my php.ini, but discovered that
changes have no effect. Even if I delete the php.ini from my windows
directory and the php directory, there is no effect. Is there some
chance that a variable somewhere, possibly changed by an error or a
hacker, now points to a hidden php.ini file somewhere?

I'm running Apache and PHP 4.3 on Windows XP Pro.

Thanks, Charlie

--
PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux