Here my code this code work perfect in localhost but not work in server
require 'vendor/autoload.php';
use Aws\S3\S3Client;
use Aws\S3\Exception\S3Exception;
$bucket = $new_api_fields['bucket'];
$keyname = $new_api_fields['keyname'];
$secret = $new_api_fields['secret'];
// Instantiate the client.
$s3 = S3Client::factory([
'key' =>$keyname,
'secret' =>$secret,
]);
$object = $s3->getIterator("ListObjects",[
'Bucket' =>$bucket,
'Prefix' =>'/ReportJan2016/'
]);
please help me...