anyway to exceed max execution time?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Charles Crume

    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_t ime?

    TIA.

    Charles...


  • J2be

    #2
    Re: anyway to exceed max execution time?


    "Charles Crume" <NOccsSPAM@char lescrumesoftwar e.com> wrote in message
    news:Wz4xf.3355 2$%D1.9975@torn ado.ohiordc.rr. com...[color=blue]
    > 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_t ime?
    >
    > TIA.
    >
    > Charles...
    >
    >[/color]

    set_time_limit( yourlimit)



    or ini_set('max_ex ecution_time',y ourlimit);
    Sets the value of a configuration option



    I hope that's what you need.


    Cheers.


    --
    ----
    Leonardo Armando Iarrusso - J2Be
    www: http://www.J2be.com - e-mail: info[at]J2Be.com


    Comment

    • Pedro Graca

      #3
      Re: anyway to exceed max execution time?

      Charles Crume wrote [reformatted]:[color=blue]
      > is there any way to allow a specific PHP file
      > to exceed the max_execution_t ime?[/color]



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

      Comment

      • tomasvf@gmail.com

        #4
        Re: anyway to exceed max execution time?

        max_execution_t ime = 0
        This option is equivalent to have infinite time

        Comment

        • C.

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

          Comment

          • Charles Crume

            #6
            Re: anyway to exceed max execution time?


            <tomasvf@gmail. com> wrote in message
            news:1136983206 .157343.165960@ f14g2000cwb.goo glegroups.com.. .[color=blue]
            > max_execution_t ime = 0
            > This option is equivalent to have infinite time[/color]

            No, don't want to set it to unlimited, just a little longer than normal.


            Comment

            • Charles Crume

              #7
              Re: anyway to exceed max execution time?


              "J2be" <info@nospamj2b e.com> wrote in message
              news:43c4e409$0 $1066$4fafbaef@ reader4.news.ti n.it...

              [snip]
              [color=blue]
              > set_time_limit( yourlimit)
              > http://www.php.net/set-time-limit
              >
              >
              > or ini_set('max_ex ecution_time',y ourlimit);
              > http://www.php.net/ini_set
              >
              >
              > I hope that's what you need.[/color]

              Yes, that's what I am looking for.

              Thanks!!!!


              Comment

              Working...