Pretty straightforward, you'd think. The problem is, according to phpinfo(), memory_limit is set to 40M. I'm guessing there's a specific way to allow a script access to all 40 MB, but I sure don't know it. If you need me to post anything, I will, but I'm hoping there's a simple answer to this...Fatal error: Out of memory (allocated 30146560) (tried to allocate 4302599 bytes) in /homepages/1/d115845883/htdocs/software/freeware/RCB/hashes/zip.php on line 60
Edit: Huh, I seem to have fixed it by changing
Code: Select all
$archiveData = $data.
$controlDirectory.
$this -> endOfCentralDirectory.
pack("v", sizeof($this -> centralDirectory)).
pack("v", sizeof($this -> centralDirectory)).
pack("V", strlen($controlDirectory)).
pack("V", strlen($data)).
"\x00\x00";Code: Select all
$archiveData = $data;
$archiveData.= $controlDirectory;
$archiveData.= $this -> endOfCentralDirectory;
$archiveData.= pack("v", sizeof($this -> centralDirectory));
$archiveData.= pack("v", sizeof($this -> centralDirectory));
$archiveData.= pack("V", strlen($controlDirectory));
$archiveData.= pack("V", strlen($data));
$archiveData.= "\x00\x00";