amazon web services - AWS SDK PHP Class Not Found -


when use aws sdk php error stating class cannot found.

    <?php     require_once  '/var/www/html/aws.phar';     use aws\common\aws;     use aws\common\enum\region;     echo "test";     $awsregion = region::us_east_1;      $aws = aws\common\aws::factory(array('key'=>'key', 'secret' => 'secret_key', 'region' => $awsregion));     $client = $aws->get('sqs');  ?> 

the exact error message receive php fatal error: class 'aws\common\enum\region' not found in /var/www/html/sendsqs.php

any appreciated.

thanks!

i had same issue using sdk in wordpress. installed sdk via composer,but sdk won't work. please try zip version,and include sdk "aws-autoloader.php". https://github.com/aws/aws-sdk-php/releases


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -