I'm running a script that needs some time (something like 3-5 mins) but after 60 seconds the page stops loading and a blank page appears. My max_execution_time in php.ini file 120 sec and I've added theses lines before my script runs:

ini_set('max_execution_time', 1800);
set_time_limit(0);

But still, after 60 seconds, the page stops. The strange thing is, when I trace my script process, the sql queries seems to be running perfectly. I mean, after the page stops, when I check my db tables, I see records are being inserted (that means my script is still running, but the problem is the page stops loading so I can't see my script result which is feed containing some text).

有帮助吗?

解决方案

Google around for other users of powweb having the same issues. It's possible that they won't allow you to extend this. If this is the case, it's time to look for a new host, or buy a VPS. May I suggest digitalocean.com for simplicity and price?

其他提示

Use following code in Apache in .htaccess file:

php_value max_execution_time 200
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top