Home > Backend Development > PHP Tutorial > php-Fatal error: Call to undefined function data_default_timezone_set()

php-Fatal error: Call to undefined function data_default_timezone_set()

WBOY
Release: 2016-06-02 11:34:50
Original
1362 people have browsed it

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
求哪位大神指点指点吧!!!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template