PHP Coding
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Coding

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old October 30th, 2009, 11:13 AM
cjones cjones is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 54 cjones User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 6 h 50 m
Reputation Power: 3
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!

Reply With Quote
  #2  
Old October 30th, 2009, 01:35 PM
IAmALlama IAmALlama is offline
Me
Click here for more information. Click here for more information
Click here for more information
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 1,937 IAmALlama User rank is Private First Class (20 - 50 Reputation Level)IAmALlama User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Week 5 Days 1 h 54 m 18 sec
Reputation Power: 4
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.

Reply With Quote
  #3  
Old November 11th, 2009, 03:33 PM
cjones cjones is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 54 cjones User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 6 h 50 m
Reputation Power: 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:
  • php.ini-5.2-previous
  • php.ini.default
  • php.ini.default copy
  • php.ini.default-5.2-previous

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

Reply With Quote
  #4  
Old November 11th, 2009, 05:09 PM
IAmALlama IAmALlama is offline
Me
Click here for more information. Click here for more information
Click here for more information
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 1,937 IAmALlama User rank is Private First Class (20 - 50 Reputation Level)IAmALlama User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Week 5 Days 1 h 54 m 18 sec
Reputation Power: 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.

Reply With Quote
  #5  
Old November 11th, 2009, 07:05 PM
cjones cjones is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 54 cjones User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 6 h 50 m
Reputation Power: 3
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.

Reply With Quote
  #6  
Old November 12th, 2009, 05:56 AM
cjones cjones is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 54 cjones User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 6 h 50 m
Reputation Power: 3
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

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Coding > php5 - Date.timezome its gone nutts!!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump




 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

Request Your Free Technology Downloads!
 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

Request Your Free Technology Downloads!
 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

Request Your Free Technology Downloads!
 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

Request Your Free Technology Downloads!
 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

Request Your Free Technology Downloads!
 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 




© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek