【发布时间】:2015-09-24 06:21:16
【问题描述】:
尝试从 et/s/wr.php 运行弹性转换器 php 代码。 wr.php 包含 php 转码器代码。这是我的代码。
<?php
require 'vendor/autoload.php';
use Aws\ElasticTranscoder\ElasticTranscoderClient;
-------------
------------
?>
这是我从 loaclhost 运行时的错误。
致命错误:在第 5 行的 C:\wamp\www\sep24\et\s\wr.php 中找不到类 'Aws\ElasticTranscoder\ElasticTranscoderClient'
那么应该怎么做..?需要帮助.. 是的,我已经包含了我从 GIT 下载的 AWS 文件夹。
【问题讨论】:
-
你在使用任何php框架还是这个核心php代码..??
-
从 wamp localhost 运行,这是唯一的 php 代码。
-
那么你在哪里包含了 ElasticTranscoderClient.php 文件?
-
AWs 包->C:\wamp\www\sep24\et\Aws\ElasticTranscoder\ElasticTranscoder.php {我的 php 代码->C:\wamp\www\sep24\et\wr.php }
-
但是你还没有在 wr.php 中包含这个文件。尝试使用 将其包含在内,并在stackoverflow.com/questions/10965454/… 处阅读答案,这可能会对您有所帮助。
标签: php amazon-web-services amazon-s3 amazon-elastic-transcoder