tonit Posted May 3, 2011 Share Posted May 3, 2011 Configuration File (php.ini) Path C:\Windows Loaded Configuration File C:\php\php.ini I'm getting this error when trying to read a file: "fopen(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function....". Although i fixed it in the c:\php\php.ini(because the file doesn't exist in c:\windows). Restarted my server but still no changes. Any help ? Quote Link to comment https://forums.phpfreaks.com/topic/235424-wrong-phpini-path/ Share on other sites More sharing options...
PFMaBiSmAd Posted May 3, 2011 Share Posted May 3, 2011 What exactly did you put in the file to change it? Invalid settings or settings with syntax errors, don't take effect. Also, if you used a Windows supplied editor to edit the file, it likely got saved with a hidden .txt extension. Have you turned off the Windows setting that hides extensions for known file types? How did you install php, because some of the all in one packages and the php.net .msi installer package override settings using registry settings and making changes to the php.ini don't do anything. Quote Link to comment https://forums.phpfreaks.com/topic/235424-wrong-phpini-path/#findComment-1209892 Share on other sites More sharing options...
Doug G Posted May 4, 2011 Share Posted May 4, 2011 Some of the binary downloads from php.net are compiled to use c:\windows\php.ini I had that happen once, simply moving php.ini to c\windows solved the problem for me. Quote Link to comment https://forums.phpfreaks.com/topic/235424-wrong-phpini-path/#findComment-1210264 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.