Error 324 (net::ERR_EMPTY_RESPONSE): The server closed the connection without sending any data
===

I'm trying to run a long-running script that downloads and parses news items for a page. There are about 260+ html pages my script downlaods, and parses news items from each page.

It's a long-running script.

If I set the amount of pages it has to parse to something low (meaning it'll take less to execute), the script runs fine:

    // Since the University blog page has 262 pages, we'll iterate through that.
    // Only 21 pages.
    for ($i = 2; $i <= 21; $i++) {
        $url = "http://www.uvm.cl/noticias_mas.shtml?AA_SL_Session=34499aef1fc7a296fb666dcc7b9d8d05&scrl=1&scr_scr_Go=" . $i;
        $page = file_get_html($url);
        parse_page_for_news($page, $parsedNews);
    }

If I increase that page count to 40 or more, the script no longer returns anything at all. On Google Chrome this error message appears:

    // Since the University blog page has 262 pages, we'll iterate through that.
    // 41 pages this time. Longer running time!
    for ($i = 2; $i <= 41; $i++) {
        $url = "http://www.uvm.cl/noticias_mas.shtml?AA_SL_Session=34499aef1fc7a296fb666dcc7b9d8d05&scrl=1&scr_scr_Go=" . $i;
        $page = file_get_html($url);
        parse_page_for_news($page, $parsedNews);
    }


----------

> No data received 

>Unable to load the webpage because the server sent no
> data. 
>
>Here are some suggestions: Reload this webpage later. 

>Error 324
> (net::ERR_EMPTY_RESPONSE): The server closed the connection without
> sending any data.

Here are the modifications I made to `php.ini` based on some searching, but still no working fix.

    ;;;;;;;;;;;;;;;;;;;
    ; Resource Limits ;
    ;;;;;;;;;;;;;;;;;;;
    
    max_execution_time = 0     ; Maximum execution time of each script, in seconds
    max_input_time = 60	; Maximum amount of time each script may spend parsing request data
    memory_limit = -1      ; Maximum amount of memory a script may consume (8MB)