Avatar ·

PHP error fatal: se agotó el límite de memoria de 134217728 bytes (128 MB)

¡Hola a todos! Soy un desarrollador PHP principiante, y al ejecutar un script en un servidor local (OpenServer) siempre aparece el error: ``` Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in D:\projects\parser\index.php on line 45 ``` Tengo un parser simple de noticias de otro sitio — recolecto títulos y enlaces usando Simple HTML DOM Parser. El script procesa alrededor de 5000 páginas. Aquí hay un ejemplo de mi código: ```php find('h2.news-title a') as $link) { $title = $link->plaintext; $href = $link->href; echo "$title - $href\n"; } // Pensé que estaba limpiando la memoria $html->clear(); unset($html); } echo "¡Listo!"; ?> ``` El problema ocurre aproximadamente en la iteración 200. Intenté aumentar memory_limit en php