Date: Sat, 12 Jun 2010 18:49:20 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Gary Kline <kline@thought.org> Cc: FreeBSD Mailing List <freebsd-questions@freebsd.org> Subject: Re: php help, please.... Message-ID: <4C13C8A0.8000009@infracaninophile.co.uk> In-Reply-To: <20100612172639.GA80940@thought.org> References: <20100612172639.GA80940@thought.org>
next in thread | previous in thread | raw e-mail | index | archive | help
-----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 - -- 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-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C13C8A0.8000009>