dongpu8935
2015-05-19 11:27
浏览 243
已采纳

通过源安装AWS SDK for PHP失败

Downloading the last sourcecode of AWS SDK PHP from github in .zip and trying to load it trough:

require 'aws-autoloader.php';
use Aws\Common\Aws;

and getting this error when it tries to load the Guzzle library:

Fatal error: Uncaught exception 'Guzzle\Common\Exception\InvalidArgumentException' with message 'Unable to open /config.php for reading' in /srv/www_nfs_desarrollo/vhosts/desarrollo.techmaker.net/httpdocs/oaviles/src/Guzzle/Service/AbstractConfigLoader.php on line 120

Didn't touched anything from the source. I can't use composer or any other dependencies manager, so only way to use this SDK is via the zip download. The dependencies are suposed to be included on the .zip but autoloader is not working at all. Any ideas?

图片转代码服务由CSDN问答提供 功能建议

从.zip中的github下载AWS SDK PHP的最后一个源代码并尝试加载它:

  require'aws-autoloader.php'; 
use Aws \ Common \ Aws; 
   
 
 

并在遇到此错误时 尝试加载Guzzle库:

致命错误:未捕获异常'Guzzle \ Common \ Exception \ InvalidArgumentException',消息'无法打开/ config.php进行读取'中/ 第120行的srv / www_nfs_desarrollo / vhosts / desarrollo.techmaker.net / httpdocs / oaviles / src / Guzzle / Service / AbstractConfigLoader.php

未触及任何内容 资源。 我不能使用composer或任何其他依赖项管理器,因此只能通过zip下载使用此SDK。 依赖关系被包含在.zip中,但自动加载器根本不工作。 有什么想法吗?

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • duanbi2760 2015-05-19 11:45
    已采纳

    Solved! I had a bad line on my index.php

    点赞 打赏 评论

相关推荐 更多相似问题