PHP 线上BUG调试小疑点

WBOY
Release: 2016-06-13 12:01:39
Original
1307 people have browsed it

PHP 线上BUG调试小问题。

程序在我windows本地(appserv)一切正常。
但我整了一个VPS,centos系统后。就一直报错。
页面直接显示,PHP里面的源代码。
查看。error_log日志,说的是

 PHP Fatal error:  Class 'linkagesClass' not found in /var/www/pddoc/index.php on line 67

源代码就是这两句:
require_once ("modules/linkages/linkages.class.php");
$result = linkagesClass::GetList(array("limit"=>"all"));

但文件modules/linkages/linkages.class.php,是存在的。类linkagesClass也存在。

我线上的地址是:www.minbanks.com

请问现在应该怎么调试。??PHP版本问题?
请高手支个招。。
------解决方案--------------------
访问 http://www.minbanks.com/
可以看到

<?<br />/******************************<br /> * $File: linkage.class.php<br /> * $Description: 证书<br /> * $Author: hummer <br /> * $Time:2010-08-09<br /> * $Update:None <br /> * $UpdateDate:None <br />******************************/<br />//将语言给插进来<br />require_once("linkages.model.php");<br /><br />class linkagesClass{<br />
Copy after login

你的这段程序需要打开短标记支持
php.ini 中
short_open_tag = On

或将  都改为 

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!