首页 > 解决方案 > 语法错误,C:\xamppp\htdocs\ecommerce\include\function.php 中的意外 '$path' (T_VARIABLE) 第 39 行

问题描述

这是我遇到问题的代码行

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.");
    }
                
}

标签: php

解决方案


推荐阅读