Jump to content

Wrong php.ini path ?


Recommended Posts

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 ?

Link to comment
https://forums.phpfreaks.com/topic/235424-wrong-phpini-path/
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/235424-wrong-phpini-path/#findComment-1209892
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.