This is a discussion on anyway to exceed max execution time? within the PHP Language forums, part of the PHP Programming Forums category; Hello all; I set "max_execution_time = 120" in my php.ini file so that some lengthy php routines in ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hello all;
I set "max_execution_time = 120" in my php.ini file so that some lengthy php routines in my auction software would have time to complete when automatically relisting lots of items. However, sometimes even 2 minutes is not long enough. I don't want to increase the max time to 10 or 15 minutes, so I'm wondering if there is any way to allow a specific PHP file to exceed the max_execution_time? TIA. Charles... |
|
|||
|
"Charles Crume" <NOccsSPAM@charlescrumesoftware.com> wrote in message news:Wz4xf.33552$%D1.9975@tornado.ohiordc.rr.com.. . > Hello all; > > I set "max_execution_time = 120" in my php.ini file so that some lengthy > php routines in my auction software would have time to complete when > automatically relisting lots of items. > > However, sometimes even 2 minutes is not long enough. I don't want to > increase the max time to 10 or 15 minutes, so I'm wondering if there is > any way to allow a specific PHP file to exceed the max_execution_time? > > TIA. > > Charles... > > set_time_limit(yourlimit) http://www.php.net/set-time-limit or ini_set('max_execution_time',yourlimit); http://www.php.net/ini_set I hope that's what you need. Cheers. -- ---- Leonardo Armando Iarrusso - J2Be www: http://www.J2be.com - e-mail: info[at]J2Be.com |
|
|||
|
Charles Crume wrote [reformatted]:
> is there any way to allow a specific PHP file > to exceed the max_execution_time? http://www.php.net/set_time_limit -- Mail to my "From:" address is readable by all at http://www.dodgeit.com/ == ** ## !! ------------------------------------------------ !! ## ** == TEXT-ONLY mail to the whole "Reply-To:" address ("My Name" <my@address>) may bypass my spam filter. If it does, I may reply from another address! |
|
|||
|
<tomasvf@gmail.com> wrote in message news:1136983206.157343.165960@f14g2000cwb.googlegr oups.com... > max_execution_time = 0 > This option is equivalent to have infinite time No, don't want to set it to unlimited, just a little longer than normal. |
|
|||
|
"J2be" <info@nospamj2be.com> wrote in message news:43c4e409$0$1066$4fafbaef@reader4.news.tin.it. .. [snip] > set_time_limit(yourlimit) > http://www.php.net/set-time-limit > > > or ini_set('max_execution_time',yourlimit); > http://www.php.net/ini_set > > > I hope that's what you need. Yes, that's what I am looking for. Thanks!!!! |