Home > other >  PHP - SDK - aws solution
PHP - SDK - aws solution

Time:09-27

Just contact the aws using PHP in S3 storage file, problems, and the great god told what is wrong,
Require_once (" vendor/autoload. PHP ");
Use the Aws \ S3 \ S3Client;
$config=array (
'key'=& gt; 'XXXXXXXX'
'secret'=& gt; 'XXXXXXX,
'region'=& gt; 'Beijing'
);


$s3=S3Client: : the factory ($config);

Error Could not find an endpoint for the s3 service in the Beijing region I see my s3 is Beijing ~
Thanks to the great god;
  •  Tags:  
  • AWS
  • Related