user926367
user926367

Reputation:

php - 60 seconds page timeout regardless of php settings

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).

Upvotes: 0

Views: 1371

Answers (2)

benathon
benathon

Reputation: 7633

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?

Upvotes: 1

Arshad Hussain
Arshad Hussain

Reputation: 777

Use following code in Apache in .htaccess file:

php_value max_execution_time 200

Upvotes: 0

Related Questions