Home  >  Article  >  Backend Development  >  请教 php5.2版本是不是不支持类的自动注册

请教 php5.2版本是不是不支持类的自动注册

WBOY
WBOYOriginal
2016-06-20 12:46:39680browse

上传到ftp上之后显示


开发是用的php5.6


回复讨论(解决方案)

你的错误是PrivilegeAction类不存在,检查文件路径是否正确。

(PHP 5 >= 5.1.2)

spl_autoload_register ? 注册给定的函数作为 __autoload 的实现

已经支持的

检查下类文件是否存在

我已经用最土的手动引入解决了,是不是这个还是魔术方法不支持,没继续探究

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn