Re: Caching Bug?
Brought to you by:
iridium
From: Martin G. <gim...@gi...> - 2002-10-09 15:27:07
|
"Danny Ledger" <da...@sq...> writes: > I came across this when investigating why my phpweather seemed to be > causing longer than expected page load times during the period it > should have been using the cache. > > [...] > > I don't know whether this is a bug in php-4.2.3's implementation of > gmmktime but I've verified that the correct information is going > into the call. Have you verified that gmmktime() works on your system? We've seen problems with gmmktime() before... It's important that the server knows its timezone otherwise gmmktime() doesn't work. See if gmmktime(0, 0, 0, 1, 1, 1970) gives you 0 and if mktime(0, 0, 0, 1, 1, 1970) gives you the number of seconds your server is offset from UTC time. I'm in Denmark where we're one hour infront of UTC, so I got -3600 from the call to mktime(). PS. Since you're running PHP 4, you should use version 2.0.0 of PHP Weather instead of 1.6x. It wont help you with the time-problem, though. -- Martin Geisler My GnuPG Key: 0xF7F6B57B See http://gimpster.com/ and http://phpweather.net/ for: PHP Weather => Shows the current weather on your webpage and PHP Shell => A telnet-connection (almost :-) in a PHP page. |