php - 语法错误,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.");
}
}
解决方案
推荐阅读
- android - 缩放按钮内部“可绘制顶部”的最佳解决方案是什么?
- asp.net - 每条记录上带有“搜索”按钮和“删除”图标的搜索页面示例
- python - 从 pyqt 获取返回值
- node.js - 如何使用 Google Cloud Function HTTP 响应的 brotli 编码发送
- php - 避免在 WooCommerce 结帐中进行计费电话验证
- entity-framework - no-build 阻止执行脚手架过程?
- powerbi - PowerBI 嵌入令牌容量?在哪里购买?谁购买?用户或应用程序所有者?
- angular - Angular - 生成对象数组并显示数据
- selenium - 使用 id 搜索时,Selenium webdriver 找不到按钮元素
- vba - 有没有办法在 Visual Basic 中将宏脚本作为字符串保存到变量中?