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

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-02 11:34:501396Durchsuche

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

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn