I am using one (which is highly recommended and widely used) and have found that the file The upload speed is if I use the command line utility, then very slow compared to that.
For example, the same 20MB file was taken via 2.8 seconds s3cmd and about 54 seconds via php:
Command line:
< Code> s3cmd put archive.tar.gz s3: // bucketOutput: The file is archived as 'archive.tar.gz' s3: // bucket / archive .tar.gz (23320623 bytes 2.8 seconds, 8.07 MB / s) [1 of 1]
PHP:
$ time = Pahl (); $ S3 = New S3 ('Access Key', 'Secret Key'); $ S3- & gt; PutObjectFile ('archive.tar.gz', 'bucket', 'archive.tar.gz'); The echo is 'complete' (Time () - $ time). 'Seconds';
Output: Made in 54 seconds
To use PHP to upload to SE3, let me do something similar To accept? Or is there a better way to do that I am missing? I can not see why there will be such a huge inconvenience in upload speed and as such I need to do with huge files in the future, such a slow problem is going to be problematic.
Disable SSL!
$ s3 = new S3 ('access key', 'secret key', wrong);
And now it's speeeeeeding together.
Comments
Post a Comment