Timeout Error

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • bigoxygen@gmail.com

    #1

    Timeout Error

    Hi.
    I have a PHP script which queries much of a large database.
    Usually, it takes a minute (depending on the extent of the query).
    However, it seems like sometimes the data is chopped off.

    Is there a setting is PHP or Apache or MySQL where I can set the
    timeout interval?

    Thanks

  • vinuthomas@gmail.com

    #2
    Re: Timeout Error

    There's a setting in php.ini to control timeout of PHP Scripts:
    max_execution_t ime value is defined in the php.ini. You can change this
    value to allow PHP scripts to run for a longer time.
    max_execution_t ime is the amount of time in seconds that a PHP script
    will be allowed to run.

    Comment

    • Senator Jay Billington Bulworth

      #3
      Re: Timeout Error

      bigoxygen@gmail .com wrote in news:1113004845 .916258.99490
      @g14g2000cwa.go oglegroups.com:
      [color=blue]
      > Hi.
      > I have a PHP script which queries much of a large database.
      > Usually, it takes a minute (depending on the extent of the query).
      > However, it seems like sometimes the data is chopped off.
      >
      > Is there a setting is PHP or Apache or MySQL where I can set the
      > timeout interval?[/color]

      Depending on how PHP is setup on your server, you may be able to get
      around this problem by putting one line of code at the top of your
      script:

      set_time_limit( 0);

      hth


      --

      Bulworth : PHP/MySQL/Unix | Email : str_rot13('f@fu ng.arg');
      --------------------------|---------------------------------
      <http://www.phplabs.com/> | PHP scripts, webmaster resources

      Comment

      Working...