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