[eluser]jayapalchandran[/eluser]
I am using codeigniter 2 for a module in my site. this is the first run on production.
num_rows() throws the following error
Quote:A PHP Error was encountered
Severity: Warning
Message: Home::index() [home.index]: It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Calcutta' for 'IST/5.0/no DST' instead
Filename: controllers/home.php
Line Number: 18
in line no 18 i have echo $catgory->num_rows();
then i updated the code as follows
Code:
function __construct()
{
date_default_timezone_set('UTC');
parent::__construct();
}
When reloaded the page i get
HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.
What could be the problem?
Is there any possibility to hide this particular error?
Is it anything to do with the server side settings?