Fatal error: Allowed memory size of 419430400 bytes exhausted (tried to allocate 251268854 bytes) in /home/apartmen/php/HTTP/Request.php on line 1012 -
ok, know how question has been asked , all. but, heres thing.
- i'm using
ini_set('memory_limit', '400m');
- the file i'm trying transfer (to amazon s3) 245mb
- the error msg weird, says allowed mem of 400mb exhausted when trying allocate 239mb.. isnt other way round?
the script i'm using library out there, communicate amazon s3
help please!
edit
ok heres code, can see i'm not doing much, script i'm using.. 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 );
"allowed mem of 400mb exhausted when trying allocate 239mb.." means php trying allocate additional 239mb of memory (when added memory allocated script) pushed on 400mb limit.
Comments
Post a Comment