I am working in a php project using codeigniter. Please advise me what is the global way to set time zone for php and mysql . In which file I can set this. I want to set it without php.ini and .htaccess file.
currently I am using this before every entry -:
$time = Date('Y-m-d h:i:s');