2

I am trying to include the Zend_Service_Amazon_S3 file by using

require_once 'Zend/Service/Amazon/S3.php';

I have also included in the include path the directory where the entire Zend library is located, AND the installation is inside Zend Server CE (which includes the Zend Framework by default). However, no matter what I try, I only get the following for my troubles:

Fatal error: require_once() [http://php.net/function.require]: Failed opening required 'Zend/Server/Amazon/S3.php' (include_path='/usr/local/zend/apache2/htdocs:/usr/local/zend/apache2/htdocs/app/:.:/usr/local/zend/share/ZendFramework/library:/usr/local/zend/share/pear:/usr/local/zend/apache2/htdocs/app/vendors') in /usr/local/zend/apache2/htdocs/app/models/item.php on line 3

The Zend/Service/Amazon/S3.php is located under the paths:

  • /usr/local/zend/share/ZendFramework/library
  • /usr/local/zend/apache2/htdocs/app/vendors
4

2 回答 2

5

您的错误消息说Zend/Server/Amazon/S3.php- 它不应该是 Zend/ Service /Amazon/S3.php 吗?

于 2009-09-03T11:48:13.830 回答
0

可能是运行 PHP 的进程没有读取文件所需的权限吗?不要忘记一个目录需要是可执行的,以便进程更改到该目录(即查看其子文件夹的内容。)

于 2009-09-03T11:04:54.697 回答