News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Phil Sturgeon's Blog:
CodeIgniter on PHP 5.3
December 11, 2009 @ 10:16:49

Those using CodeIgniter on a PHP 5.3 installation might have noticed some error messages related to the datetime handling when you use related functions. Phil Sturgeon has a solution for you to get rid of those pesky messages.

Last night I set up Zend Community Server with PHP 5.3 and gave PyroCMS (running CodeIgniter 1.7.2) a spin. Out of the box v0.9.7.3 and v0.9.8-dev seemed to work fine, except for a single Warning at the top of each page. [...] To fix this, you only need to edit the main index.php for your CodeIgniter application.

He includes the code for a new section that sets the default timezone for the application and, if you want to help suppress errors like this in the future, he also shows how to change the error_reporting level. You can slo change these settings in the php.ini file, but this is a good per-application way to update those settings.

0 comments voice your opinion now!
codeigniter datetime error


blog comments powered by Disqus

Similar Posts

Lorna Mitchell's Blog: Handling SQL Errors in PDO

Daniel Vecchiato's Blog: Using Zend Framework components in Code Igniter

NetTuts.com: Quick Tip: Integrate Compass into an Existing CodeIgniter

Tiffany Brown's Blog: Debugging tip: "Disallowed Key Character" error in CodeIgniter

Christopher Jones' Blog: Vote to have more PHP sessions at Oracle Open World


Community Events











Don't see your event here?
Let us know!


application overview composer facebook performance framework release component opinion symfony2 package install hack unittest language security podcast introduction database hhvm

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework