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.

  1. i'm using ini_set('memory_limit', '400m');
  2. the file i'm trying transfer (to amazon s3) 245mb
  3. 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

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -