|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
php5 - Date.timezome its gone nutts!!
I'm not sure if its just snow leopard or the entire PHP v 5.3.0
All my dates have: Warning: phpinfo() [function.phpinfo]: 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. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for 'GMT/0.0/no DST' instead in /Users/test/Sites/php.php on line 1 This is even on my phpinfo() page! I've tried everything. Its spelt right and its pointing to Europe/London but nothing seems to be working with it. Any ideas anyone? please what ever you might think it is, throw it my way and I'll give it a blast! Thanks in advance! |
|
#2
|
|||
|
|||
|
did you actually put Europe/London in php.ini for the timezone setting? All you said is that it is "spelled right and pointing" there but that could be php just reading the system default as there.
|
|
#3
|
|||
|
|||
|
Hey, Thanks for the reply.
Sorry for the late response. Workin on other projects. I viewed what you said and had another go but went a bit beyond editing the php.ini file. I removed it completely from the hard drive! PHP STILL WORKS!!?? Now I'm completely at a loss as to whats going on. The files are supposed to reside in the etc/ directory according to the php info() file. There are 4 files in relation to php:
Anyways I took the lot out to see if I could add them one by one to find which one was actually driving php. Of course I tested it 1st when I removed them all and found that php was still working and still had the date.timezone problem. There are 3 other users that could have been holding some delinquent files but as the php resides in the system directory there shouldn't be any there either. I was right! no php.ini files in other users directories. I'm guessing the only way to stop the annoying warning about the date.timezone is to switch off the warning. Any ideas how I should do that even though I cant actually find the php.ini file? Thanks again |
|
#4
|
|||
|
|||
|
if you delete the php.ini file then php will just go off of the defaults. php.ini is just a way to override those defaults. However I believe that the default install also doesn't include extensions so you probably want one. Also php.ini changes are usually not available until you restart the web server, so if you didn't, you should to see whats happened.
|
|
#5
|
|||
|
|||
|
I've Restarted the webserver each time and it was still working.
Also checked the /etc/ directory to see if created a default php.ini. It seems to be running either a hidden file or a file from somewhere else although the path points to /etc/ on the php info(). I'm looking at the /etc/ directory and there is definatley no php.ini file nor anything with any of the other prefix's mentioned earlier. Its a fairly new macbook, bought this year which was running leopard and upgraded to snow leopard, when it came out. I tried a bit of Zend which I know had some of its own set up; httpd directory, etc. But I've deleted everything Zend trying to get to the bottom of this problem. I can't see why the info() file still reads that its pointing to a file that doesn't exist. On past macs I've had that certainly wouldn't happen. There is another computer that hasn't been upgraded. When I get the chance, I'll give the date.timezone a go. I'll tell you what happens... Thanks. |
|
#6
|
|||
|
|||
|
Fixed it!
Feeling rather stupid now but it was the php.ini.default file that needed changing from php.ini.default to just php.ini So you are correct in saying that it was running the default set up. It couldn't see the php.ini file as it didn't exist in actuality. Thanks for you help |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Coding > php5 - Date.timezome its gone nutts!! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|