Date: Sat, 12 Jun 2010 11:47:11 -0700 From: Gary Kline <kline@thought.org> To: Matthew Seaman <m.seaman@infracaninophile.co.uk> Cc: FreeBSD Mailing List <freebsd-questions@freebsd.org> Subject: Re: php help, please.... Message-ID: <20100612184711.GA81004@thought.org> In-Reply-To: <4C13C8A0.8000009@infracaninophile.co.uk> References: <20100612172639.GA80940@thought.org> <4C13C8A0.8000009@infracaninophile.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Jun 12, 2010 at 06:49:20PM +0100, Matthew Seaman wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On 12/06/2010 18:26:42, Gary Kline wrote: > > can anybody 'splain what suddenly went wrong with my two-year-old > > php script? > > Simple. You upgraded to php-5.3.x. This is a well known gotcha -- > php-5.3.x needs to have the timezone set explicitly in > /usr/local/etc/php.ini. If you haven't got a php.ini, then just copy > one of the sample files, php.ini-production for preference, and edit it > like so (although your timezone is almost certainly not Europe/London, > so substitute accordingly): > > % diff -u php.ini-production php.ini > - --- php.ini-production 2010-05-31 10:03:32.000000000 +0100 > +++ php.ini 2010-04-27 15:53:52.000000000 +0100 > @@ -1002,7 +1002,7 @@ > [Date] > ; Defines the default timezone used by the date functions > ; http://php.net/date.timezone > - -;date.timezone = > +date.timezone = Europe/London > > ; http://php.net/date.default-latitude > ;date.default_latitude = 31.7667 > > Cheers, > > Matthew here's what is in my /usr/local/etc/php.ini file as of moments ago: [Date] ; Defines the default timezone used by the date functions ; http://php.net/date.timezone date.timezone = America/Los_Angeles i hit reload on my broswer and still get the err from date. the first date is $week = date("w"); [[[i think!]]] then, i tried [again] what Robert suggested, and my problems vanished. thanks to you both. $day = date_default_timezone_set("w"); $hour = date_default_timezone_set("H"); $minutes = date_default_timezone_set("i"); $seconds = date_default_timezone_set("s"); back to my re-editing about my cover artist, one Mr Kalin pretty soon. once i've cleaned up my home/homepage!, but it seems strange that php would simply =change= out from under me. well, so to speak. can you suggest any php list that i should sub to? i don't always click around to read the latest and greatest about lang changes. or fashions and trends, :_) LOL, but i do my best to read of this kind of change..... so any list suggestion would be indeed welcome. gary, [jack of N trades and maste r of -1. ] > > - -- > Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard > Flat 3 > PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate > JID: matthew@infracaninophile.co.uk Kent, CT11 9PW > -----BEGIN PGP SIGNATURE----- > Version: GnuPG/MacGPG2 v2.0.14 (Darwin) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iEYEARECAAYFAkwTyKAACgkQ8Mjk52CukIzCegCaAgFCmpJewNjbJJrslNdHGdyq > /fgAnjoCsVwUK/koPT7TzrM26UsXgro3 > =06OP > -----END PGP SIGNATURE----- -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix The 7.83a release of Jottings: http://jottings.thought.org/index.php http://journey.thought.org 99 44/100% Guaranteed Novel
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100612184711.GA81004>