syntax error, unexpected '$path' (T_VARIABLE) in C:\xamppp\htdocs\ecommerce\include\function.php on line 39
This is the line of code that I'm having a problem on
function __autoload($class_name){
$class_name = strtolower($class_name);
$path = LIB_PATH.DS."{$class_name}.php";
if(file_exists($path)){
require_once($path);
}else{
die("The file {$class_name}.php could not be found.");
}
}
source https://stackoverflow.com/questions/69396443/syntax-error-unexpected-path-t-variable-in-c-xamppp-htdocs-ecommerce-incl
Comments
Post a Comment