求帮忙查错,多谢
时间:2021-07-01 10:21:17
帮助过:6人阅读
求帮忙查错,谢谢
各位好,我对PHP不太懂,在网上拉了一个项目,试用wampserver运行的时候,貌似有语法错误编译不通过。看了半天没看出来,烦劳各位帮个小忙,谢谢。
Parse error: parse error in E:\PHP\wamp\www\includes\db_mysql_error.php on line 132
/*----------------------------------------------------
[dzsw] includes/db_mysql_error.php
----------------------------------------------------*/
if(!defined('DIR_dzsw')) {
exit('Access Denied');
}
global $timestamp, $settings;
$dberror = $this->error();
$dberrno = $this->errno();
if($dberrno == 1114) {
?>
Max onlines reached
Notice: WebShop onlines reached the upper limit.
Sorry, the number of online visitors has reached the upper limit.
Please wait for someone else going offline or visit us in idle hours.
|
|
exit;
} else {
?>
Mysql error!
Time: =gmdate("Y-n-j H:i:s", $timestamp + ($settings['time_offset'] * 3600))?>
Script:
SQL: =htmlspecialchars($sql)?>
}?> Error: =$dberror?>
Errno: =$dberrno?>
|
|
exit;
}
?>
貌似是在倒数第三行的花括号这,我把括号去掉了也不对。。
------解决思路----------------------一个可能的原因是你的PHP没有开启短标签功能( short tags)
------解决思路----------------------把短标签改成完整标签之后,之前所有的= $aaaa 都应该替换为