i gziplemek istediğiniz bir 53 MB xml dosyası var.
Gzip Aşağıdaki kod
$gzFile = "my.gz";
$data = IMPLODE("", FILE($filename));
$gzdata = GZENCODE($data, 9);
//open gz -- 'w9' is highest compression
$fp = gzopen ($gzFile, 'w9');
//loop through array and write each line into the compressed file
gzwrite ($fp, $gzdata);
//close the file
gzclose ($fp);
Bu neden
PHP Fatal error: Out of memory (allocated 70516736) (tried to allocate 24 bytes)
Herhangi biri herhangi bir öneriniz var.
Ben zaten php.ini içindeki bellek artırmak var