hata mesajı :

Allowed memory size of 536870912 bytes exhausted (tried to allocate 97259779 bytes) in

hata satırındaki kod:

$memory = round(memory_get_usage() / 1024 / 1024, 2).'MB';
$output = str_replace(array('{elapsed_time}', '{memory_usage}'), array($elapsed, $memory), $output);
}

nasıl düzeltebilirim?



ini_set("memory_limit","-1");dosyaya bunu ekledim düzeldi fakat bu ne kadar sağlıklı olur?