Zend include_once(myphpfile):无法打开流:没有这样的文件或目录
Zend include_once(myphpfile): failed to open stream: No such file or directory
这个问题快把我逼疯了。我知道已经提交了类似的问题,但没有解决方案对我有用
我收到此错误:
Warning: include_once(): Failed opening
'Recruit/Model/DbTable/Volontari.php' for inclusion
(include_path='/var/www/html/fabio/recruit/application/../library:/var/www/html/fabio/recruit/library:.:/usr/share/pear:/usr/share/php')
in /usr/share/php/Zend/Loader.php
但实际上文件存在于服务器上。这是我的文件夹树的一部分
source
|__application
|_ ....
|__library
|__Recruit
|__Forms
| |__VolontariCreate.php
|__Model
|__DBTable
|__Volontari.php
表单 VolontariCreate.php 有效,所以我不认为它找不到路径。
我还用 echo get_include_path(); 检查了包含路径;
他们是正确的
如果能帮上忙,客户端是Ubuntu,服务器是Centos,zend版本是1.12.17dev
感谢您的支持。
我认为您的问题是 linux/unix 文件系统区分大小写。在服务器 运行 Windows 上,您可以使用您喜欢的任何文件大小写,因为它们不区分大小写。因此,您要求包括:
Recruit/Model/DbTable/Volontari.php
将失败,因为实际路径应该是:
Recruit/Model/DBTable/Volontari.php
注意DB中的大写字母B...
这个问题快把我逼疯了。我知道已经提交了类似的问题,但没有解决方案对我有用
我收到此错误:
Warning: include_once(): Failed opening 'Recruit/Model/DbTable/Volontari.php' for inclusion (include_path='/var/www/html/fabio/recruit/application/../library:/var/www/html/fabio/recruit/library:.:/usr/share/pear:/usr/share/php') in /usr/share/php/Zend/Loader.php
但实际上文件存在于服务器上。这是我的文件夹树的一部分
source
|__application
|_ ....
|__library
|__Recruit
|__Forms
| |__VolontariCreate.php
|__Model
|__DBTable
|__Volontari.php
表单 VolontariCreate.php 有效,所以我不认为它找不到路径。
我还用 echo get_include_path(); 检查了包含路径; 他们是正确的
如果能帮上忙,客户端是Ubuntu,服务器是Centos,zend版本是1.12.17dev
感谢您的支持。
我认为您的问题是 linux/unix 文件系统区分大小写。在服务器 运行 Windows 上,您可以使用您喜欢的任何文件大小写,因为它们不区分大小写。因此,您要求包括:
Recruit/Model/DbTable/Volontari.php
将失败,因为实际路径应该是:
Recruit/Model/DBTable/Volontari.php
注意DB中的大写字母B...