-2

This is PHP file that is causing the error in trying to access the livescore PHP file in the website

session_start();

define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'root');
define('DB_PASSWORD', '');
define('DB_NAME', 'update_score');

spl_autoload_register(function($class_name) {
    require $_SERVER['DOCUMENT_ROOT'] .'/cricinfo/admin/libs/'  . $class_name . '.php';
});

?>

spl_autoload error occurs because init PHP file trying to access to the live score PHP file where it suggest that these that these two lines that causing this error.

$active=new activeMatch();
$result1=$active->activeTeam();

Here is the errors

this is the error

Script47
  • 14,230
  • 4
  • 45
  • 66

1 Answers1

0

The error suggests that the file DB.php doesn't exist at the path you've specified.

lookdad
  • 98
  • 7