Ok, I know how this question has been asked and all. But, heres the thing.
- I'm already using
ini_set('memory_limit', '400M');
- The file I'm trying to transfer (to Amazon S3) is 245MB
- The error msg is weird, says allowed mem of 400MB exhausted when it was trying to allocate 239MB.. isnt that the other way round?
The script I'm using is a library out there, to communicate with the Amazon S3
Help please!
EDIT
Ok heres the code, as you can see I'm not doing much, its all about the script I'm using.. That is here: http://belgo.org/backup_and_restore_to_amazo.html
ini_set('memory_limit', '400M');
require 'lib/s3backup.php';
$bucket = 'thebucketname';
$bucket_dir = 'apts';
$local_dir = "/home/apartmen/public_html/transfer/t/tr";
$s3_backup = new S3_Backup;
$s3_backup->upload_dir( $bucket, $bucket_dir, $local_dir );