I've got some strange behavior happening on my server.
I have a php page which runs a few processes to keep my db up to date and optomized.
The process can take about 40 minutes to run.
I've used the following to start my page
The values I've set so high because I've been trying to give the processes lots of time to run, but that doesn't seem to really be working.
and I've also tried
it seems like about 10% of the time, everything runs smoothly. The other 90% of the time, the page times out after about 15 minutes.
I'm wondering if it has something to do with the memory_limit. I've been looking for ways to clear the memory with PHP but everything I've read says you don't have to.
Any ideas on why this process won't run completely?
I have a php page which runs a few processes to keep my db up to date and optomized.
The process can take about 40 minutes to run.
I've used the following to start my page
The values I've set so high because I've been trying to give the processes lots of time to run, but that doesn't seem to really be working.
Code:
set_time_limit(0);
header("Content-type: text/html; charset=utf-8");
Code:
error_reporting(E_ALL);
ini_set('display_errors', false);
ini_set("max_execution_time","50000");
ini_set("memory_limit","100M");
header("Content-type: text/html; charset=utf-8");
I'm wondering if it has something to do with the memory_limit. I've been looking for ways to clear the memory with PHP but everything I've read says you don't have to.
Any ideas on why this process won't run completely?
Comment