s3cmd is an awesome solution !!! but instead, using php to load the directory, use the parameter with s3cmd as follows: s3cmd put --recursive directory_name s3://bucket_name in the terminal shell .... enjoy s3cmd !!
Note. Use this s3cmd link to install on your platform, for ubuntu lovers just type
- sudo (for non-root) apt-get install s3cmd
- s3cmd --configure (it asks for your access to Amazon and the secret key)
- then, s3cmd ls (list of all buckets)
source share