Maison >développement back-end >tutoriel php >php-Fatal error: Call to undefined function data_default_timezone_set()
php数据库连接
代码如下:
require_once('sql_class.php');
$db=new db_Mysql();
$db->dbServe='localhost';
$db->dbbase='gbook';
$db->dbUser='root';
$db->dbPwd='root';
$db->dbconnect();
define('MCBOOKINSTALLED',TRUE);
define('TABLE_PREFIX',"ly_");
if(PHP_VERSION>'5.0.0'){
data_default_timezone_set('PRC');
}
?>
运行后的提示:
Fatal error: Call to undefined function data_default_timezone_set() in E:\AppServ\www\online message system\config.php on line 12
求哪位大神指点指点吧!!!