I wrote a simple crawler using Simple HTML Dom Parser to scrape some stuff.
It's a simple script only running with 1 process and nothing massive. But after some time it produces a "Segmentation fault (core dumped)"-error, when I am running it in the shell.
When I run the script in the browser it says
"Error: The connection to the server was reset while the page was loading.".
I have made sure to unset() every variable as soon as possible and also increased the memory_limit in php.ini, but still I get this error :/
Does someone know what it means and how to solve it?
Thanks for any suggestions!
ini_get('memory_limit');in your script to double-check.) Also, if it's a memory leak that's causing the problem, which sounds the likeliest candidate, we'll need to see the script to know what's going on. - Matt Gibson