Php给出执行时间异常,时间限制设置为0

I have a weird problem:

I have a method that needs a huge execution time(>60s), so I added a set_time_limit(0) in its class This method has calls to other classes.

The problem is that I get an execution time exception. In one of the calling classes.

Could it be that I should add a set_time_limit in the other classes?

create a .htaccess file and insert the below code

//<IfModule mod_php5.c>  
//php_value post_max_size 5M  
//php_value upload_max_filesize 5M  
//php_value memory_limit 300M  
//php_value max_execution_time 259200  
//php_value max_input_time 259200 
//</IfModule>

I have added additional php values.. you can ignore that...please remove // before using the code

Hope this will solve your problem

Thanks