January 15, 2010

PHP on OS X 10.6 Snow Leopard throwing errors

Snow Leopard now uses PHP 5.3, so there are new rules in the playing field. You can fix them by adding

date.timezone = "America/Anchorage";

in your php.ini file, or if you don’t have access to that, you can add this to your own project:

date_default_timezone_set('America/Chicago');

Use whatever timezone is appropriate for you, of course. The list is here: http://us3.php.net/manual/en/timezones.php

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

You must be logged in to post a comment.