使用WAMP配置PHPEXCEL类的致命错误(PHP 5.3.5)



在我的应用程序中使用phpexcel时,我会遵循错误

在phpexcel/autoLoader.php文件中for行" phpexcel_shared_zipstreamwrapper :: regissh();",

Fatal error: require() [function.require]: Failed opening required '/wamp/www/xxxx/site//common/class/PHPExcel_Shared_ZipStreamWrapper.class.php' (include_path='C:wampwwwxxxxsitecommonhtml_purifier;.;C:phppear') in C:wampwwwxxxxsiteconfigbootstrap.php on line 27

和" phpexcel_shared_string :: buildcharactersets();"

Fatal error: require() [function.require]: Failed opening required '/wamp/www/xxxx/site//common/class/PHPExcel_Shared_String.class.php' (include_path='C:wampwwwxxxxsitecommonhtml_purifier;.;C:phppear') in C:wampwwwxxxxsiteconfigbootstrap.php on line 27

我正在使用php 5.3.5的Wamp。我的本地计算机上启用了ZIP XML和GD2扩展。请帮助我。

谢谢。

引用c: wamp www xxxx site config config bootstrap.php建议您正在使用某种框架:它是否具有可能发生冲突的自动加载器使用或覆盖phpexcel的自动加载器?

引用

'/wamp/www/xxxx/site//common/class/phpexcel_shared_zipstreamwrapper.class.php'

似乎可以确认这一点。由于某些东西正在更改文件名以包含" .class"作为文件名的一部分,并且它忽略了phpexcel自己的自动加载器,该phpexcel会拆分一个类名称以匹配其目录结构

如果您使用的是标准框架,例如ZF或Symfony,则应在该框架上注册Phpexcel。如果是自制的,请确保您的自动加载器已注册

您似乎在路径上有双重斜线:

/wamp/www/xxxx/site*//*common

因此,这可能是一个路径问题,并且自动加载器无法加载文件,因为路径是错误的。

最新更新