PHP online bug Debugging minor problem.

Source: Internet
Author: User
Program on my Windows local (Appserv) everything is OK.
But after I complete a vps,centos system. has been an error.
Page directly display, PHP inside the source code.
View. Error_log Log, said is

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

The source code is these two sentences:
Require_once ("modules/linkages/linkages.class.php");
$result = linkagesclass::getlist (Array ("limit" = "all");

But the file modules/linkages/linkages.class.php, is there. Class Linkagesclass also exist.

My address on the line is: www.minbanks.com

How should I debug now?? PHP version problem?
Please master a recruit.


Reply to discussion (solution)

Require_once ("modules/linkages/linkages.class.php"); This reference may not find the file path

Change to this test:
Require_once (__dir__. "/modules/linkages/linkages.class.php");

In require_once ("modules/linkages/linkages.class.php"); Add a sentence below
Print_r (Get_included_files ());
Look at the results.

Visit http://www.minbanks.com/
Can see

!--?/****************************** * $File: linkage.class.php * $Description: Certificate * $ Author:hummer * $Time: 2010-08-09 * $Update: None * $UpdateDate: None ******************************///Insert the language require_ Once ("linkages.model.php"); class linkagesclass{ 
Your program needs to open the short tag support
php.ini
Short_open_tag = On br>
or change the!--? to

Print_r (Get_included_files ()) below;
Look at the results again




Add this, or display the previous content

Require_once ("./modules/linkages/linkages.class.php");
Give it a try


Moderator under the solution.

php.ini
Short_open_tag = On (with this)

or change the!--? to

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.