PHP Script stops working after 5 to 6 minutes of execution

424 views Asked by At

I have set the max_input_time 600000 and max_execution_time 600000, upload_max_filesize 1GB, memory_limit 512M But still my Script stops after 5 minutes of execution.

Basically what I want is, When I Run a PHP Script to Import or Export bigger Files. It exports just half file and Stops. Or If I try to upload 400 or 450 MB file It stops.

I tried import .sql file using PHP Script. It stopped after 5 Minutes and there were only 18 Tables with records were able to be imported in those 5 minutes, other 50 Tables were still pending.

I want to Run the Script at least for about 20 to 30 minutes, So My Script can complete the Process.

Please let me know what I should do, Should I Make some more changes in the php.ini file or something else. Whatever you will advise

1

There are 1 answers

5
pmali On

Browser Does not support 20-30 minutes to waiting for a response from the server. You can run PHP scirpt file using the command line.