Вопрос

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