Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 18.225.55.42
Current Path : /var/www/oasis/ |
| Current File : /var/www/oasis/s3_upload.php |
<?php
require 'aws/aws-autoloader.php';
$IAM_KEY = 'AKIAJ5CIKVVAOZ7L33EQ';
$IAM_SECRET = 'bZCsYOY/yg4vqUxcwTXz2v/L2R5ElUeQn8GbXtmD';
use Aws\S3\S3Client;
use Aws\S3\Exception\S3Exception;
// Set Amazon S3 Credentials
$s3 = S3Client::factory(
array(
'credentials' => array(
'key' => $IAM_KEY,
'secret' => $IAM_SECRET
),
'version' => "latest",
'region' => 'ap-south-1'
)
);
?>
|