0

hi everyone,
in my server, i am running a script thats uses curl heavily and it usually takes about 5 minutes to finish running. It used to wokr in my previous server, however, once i moved into my new server, it runs only for 30 seconds. In my php.ini, the max_execution_time is set to 1200 but it still runs only 30 seconds. What do you guys think I should do?
thanks in advance :)

5
Contributors
8
Replies
27
Views
3 Years
Discussion Span
Last Post by gabrielcastillo
0

max_input_time can override max_execution_time but this was supposed to have been fixed in 5.3.1. What PHP version are you using?

0

I am running php 5.3.3
my max_input_time is set to 300
does that make sense at all?

0

Not really although you could set it to 1200 to match the execution time or -1 (its default value). I think the max_execution_time shows in phpinfo().
Can you output that and check the value you see there matches what you have the ini file?

0

its the same thing... i changed it now to 2000 but still no change... do u think it might be from the server's ram?

0

It's starting to look like something else is the problem. Not sure how much more help I can be...

0

Couple things:

  1. Use phpinfo() to make sure that the value is actually being changed or not. If your host runs PHP as FastCGI, you may need to kill the cgi processes.

  2. Your host may be killing the process using a different mechanism. This is common on many hosting providers such as HostGator, who kill processes that run longer than 5 minutes. Other hosts might have different rules, I wouldn't be surprised to see a process killed after 30 seconds on shared hosting.

Edited by Isaac_4

0

you can try a couple of things like ini_set('max_execution_time', '3000');
or

in your htaccess file:

<IfModule mod_php5.c>
php_value max_execution_time 3000
</IfModule>
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.