Page 1 of 1
PHP function doesn't process everything it needs to
Posted: Fri Feb 22, 2008 5:04 pm
by weblucky
Hello,
I am trying to process some data from different RSS sources, but it takes some time and my functions stops processing all the results after some time, leaving about 50% of unprocessed data. Could you advise me please what should I do so my data is fully processed?
Thanks.
Re: PHP function doesn't process everything it needs to
Posted: Fri Feb 22, 2008 6:47 pm
by RobertGonzalez
If it is timing our your server then I would suggest paring down the feeds you are reading. Generally the server processing time limit is 30 seconds. If it is taking that long to get though half of the feeds then you are pulling in way to much information and really not serving up any information in a timely manner to your users.
Re: PHP function doesn't process everything it needs to
Posted: Sat Feb 23, 2008 4:58 am
by weblucky
Actually this php functionality is supposed to run on a scheduled basis (as a batch) to fetch in the information. Then information is braken into different themes to represent to user by another php to give it back to user (this works fine).
Is there any way I can say php to ignore any time outs and do what ever it is asked to do?
Re: PHP function doesn't process everything it needs to
Posted: Sat Feb 23, 2008 7:35 am
by anjanesh
set_time_limit();
This function has no effect when PHP is running in safe mode. There is no workaround other than turning off safe mode or changing the time limit in the php.ini.
So this is probably impossible to do in PHP6.
Re: PHP function doesn't process everything it needs to
Posted: Sat Feb 23, 2008 12:42 pm
by weblucky
It seems working. Thank you very much.