Script randomly cuts off
<p>I've made a VERY basic website which takes an array of image URLs, zips them, and returns the zip location. The problem is that the script cuts off at some point.</p>

<p>One of the following usually happens:</p>

<ul>
<li>not all the pictures are copied</li>
<li>not all pictures are copied and the last picture has 0 file size</li>
<li>sometimes the ajax call doesn't run the error or success callback</li>
</ul>

<p>Is this because the server is only allowing a certain amount of time for the script to execute? It does seem to work with less pictures. What can I do? </p>

<p>I have the following settings:</p>

<p>max_execution_time  10  10
max_file_uploads    20  20
max_input_nesting_level 64  64
max_input_time  10</p>

<p>also, set_time_limit is disabled. </p>

<p>I tried ini_set('max_execution_time', 300); and nothing changed</p>

<p>edit: Probably a REALLY stupid question, but would it change anything if I executed another PHP page after a certain amount of time if the script isn't going to finish before the limit?</p>
