anyway to exceed max execution time?

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


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-11-2006
Charles Crume
 
Posts: n/a
Default anyway to exceed max execution time?

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


Reply With Quote
  #2 (permalink)  
Old 01-11-2006
J2be
 
Posts: n/a
Default Re: anyway to exceed max execution time?


"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


Reply With Quote
  #3 (permalink)  
Old 01-11-2006
Pedro Graca
 
Posts: n/a
Default Re: anyway to exceed max execution time?

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!
Reply With Quote
  #4 (permalink)  
Old 01-11-2006
tomasvf@gmail.com
 
Posts: n/a
Default Re: anyway to exceed max execution time?

max_execution_time = 0
This option is equivalent to have infinite time

Reply With Quote
  #5 (permalink)  
Old 01-11-2006
C.
 
Posts: n/a
Default Re: anyway to exceed max execution time?

....but do you really expect your users to wait that long. And not click
the 'submit' button again.

You need to fix the real problem - not fix the problems in the
workaround.

C.

Reply With Quote
  #6 (permalink)  
Old 01-11-2006
Charles Crume
 
Posts: n/a
Default Re: anyway to exceed max execution time?


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


Reply With Quote
  #7 (permalink)  
Old 01-11-2006
Charles Crume
 
Posts: n/a
Default Re: anyway to exceed max execution time?


"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!!!!


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 12:06 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0