PHP script timing out after 90 mins

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

    PHP script timing out after 90 mins

    Just moved site to different web server. Previously no problems. Now, the
    script will time out after 90 minutes. I've set set_time_limit( 0) but no
    effect.

    Any ideas?

    John


  • Ken Robinson

    #2
    Re: PHP script timing out after 90 mins



    Justice wrote:[color=blue]
    > Just moved site to different web server. Previously no problems. Now, the
    > script will time out after 90 minutes. I've set set_time_limit( 0) but no
    > effect.[/color]

    90 MINUTES??? That's an awful long time for a script to run (1.5
    hours). Do you mean 90 seconds?

    Have you talked to your new hosts?

    Ken

    Comment

    • Justice

      #3
      Re: PHP script timing out after 90 mins

      The program runs for about 2 hours.
      It accesses an XML gateway, data is exchanged, and my site's database is
      then updated.
      There is a lot of data processing.

      Regards
      John



      "Ken Robinson" <kenrbnsn@rbnsn .com> wrote in message
      news:1121925315 .701068.82140@g 47g2000cwa.goog legroups.com...[color=blue]
      >
      >
      > Justice wrote:[color=green]
      > > Just moved site to different web server. Previously no problems. Now,[/color][/color]
      the[color=blue][color=green]
      > > script will time out after 90 minutes. I've set set_time_limit( 0) but[/color][/color]
      no[color=blue][color=green]
      > > effect.[/color]
      >
      > 90 MINUTES??? That's an awful long time for a script to run (1.5
      > hours). Do you mean 90 seconds?
      >
      > Have you talked to your new hosts?
      >
      > Ken
      >[/color]


      Comment

      • lkrubner@geocities.com

        #4
        Re: PHP script timing out after 90 mins

        > The program runs for about 2 hours.[color=blue]
        > It accesses an XML gateway, data is exchanged, and my site's database is
        >then updated.[/color]

        Tell us about the server. Windows, Unix, Linux, or Macintosh? What
        version of Apache? Or Windows?

        At a guess I'm thinking that Apache is enforcing some kind of module
        security. But I'm guessing.

        Is the script dying? What line does it die on? Maybe it runs out of
        memory? I've had arrays that fill up and kill a script by tripping the
        memory limit. What memory limit is set in php.ini? Perhaps it is lower
        than what was set on your last machine?

        Comment

        • Justice

          #5
          Re: PHP script timing out after 90 mins

          Hi,

          It's linux
          On the previous server it was a shared IP. The new is a dedicated IP and
          thus has its own PHP.INI.
          I've gone in and changed memory_limit from 8M to 15M and I'll try again
          tomorrow.
          Thanks
          John


          <lkrubner@geoci ties.com> wrote in message
          news:1121930162 .004933.223800@ f14g2000cwb.goo glegroups.com.. .[color=blue][color=green]
          > > The program runs for about 2 hours.
          > > It accesses an XML gateway, data is exchanged, and my site's database is
          > >then updated.[/color]
          >
          > Tell us about the server. Windows, Unix, Linux, or Macintosh? What
          > version of Apache? Or Windows?
          >
          > At a guess I'm thinking that Apache is enforcing some kind of module
          > security. But I'm guessing.
          >
          > Is the script dying? What line does it die on? Maybe it runs out of
          > memory? I've had arrays that fill up and kill a script by tripping the
          > memory limit. What memory limit is set in php.ini? Perhaps it is lower
          > than what was set on your last machine?
          >[/color]


          Comment

          • Justice

            #6
            Re: PHP script timing out after 90 mins

            Well I increrased the memory from 8M to 15M but there is no difference.

            Any ideas?

            Regards
            John


            "Justice" <Justice2005@ya hoo.com> wrote in message
            news:yqudndCON9 Tr5kLfRVnyuQ@ec lipse.net.uk...[color=blue]
            > Hi,
            >
            > It's linux
            > On the previous server it was a shared IP. The new is a dedicated IP and
            > thus has its own PHP.INI.
            > I've gone in and changed memory_limit from 8M to 15M and I'll try again
            > tomorrow.
            > Thanks
            > John
            >
            >
            > <lkrubner@geoci ties.com> wrote in message
            > news:1121930162 .004933.223800@ f14g2000cwb.goo glegroups.com.. .[color=green][color=darkred]
            > > > The program runs for about 2 hours.
            > > > It accesses an XML gateway, data is exchanged, and my site's database[/color][/color][/color]
            is[color=blue][color=green][color=darkred]
            > > >then updated.[/color]
            > >
            > > Tell us about the server. Windows, Unix, Linux, or Macintosh? What
            > > version of Apache? Or Windows?
            > >
            > > At a guess I'm thinking that Apache is enforcing some kind of module
            > > security. But I'm guessing.
            > >
            > > Is the script dying? What line does it die on? Maybe it runs out of
            > > memory? I've had arrays that fill up and kill a script by tripping the
            > > memory limit. What memory limit is set in php.ini? Perhaps it is lower
            > > than what was set on your last machine?
            > >[/color]
            >
            >[/color]


            Comment

            • sharma

              #7
              Re: PHP script timing out after 90 mins

              Any apache version diffrencessss.. ..

              Justice wrote:[color=blue]
              > Well I increrased the memory from 8M to 15M but there is no difference.
              >
              > Any ideas?
              >
              > Regards
              > John
              >
              >
              > "Justice" <Justice2005@ya hoo.com> wrote in message
              > news:yqudndCON9 Tr5kLfRVnyuQ@ec lipse.net.uk...[color=green]
              > > Hi,
              > >
              > > It's linux
              > > On the previous server it was a shared IP. The new is a dedicated IP and
              > > thus has its own PHP.INI.
              > > I've gone in and changed memory_limit from 8M to 15M and I'll try again
              > > tomorrow.
              > > Thanks
              > > John
              > >
              > >
              > > <lkrubner@geoci ties.com> wrote in message
              > > news:1121930162 .004933.223800@ f14g2000cwb.goo glegroups.com.. .[color=darkred]
              > > > > The program runs for about 2 hours.
              > > > > It accesses an XML gateway, data is exchanged, and my site's database[/color][/color]
              > is[color=green][color=darkred]
              > > > >then updated.
              > > >
              > > > Tell us about the server. Windows, Unix, Linux, or Macintosh? What
              > > > version of Apache? Or Windows?
              > > >
              > > > At a guess I'm thinking that Apache is enforcing some kind of module
              > > > security. But I'm guessing.
              > > >
              > > > Is the script dying? What line does it die on? Maybe it runs out of
              > > > memory? I've had arrays that fill up and kill a script by tripping the
              > > > memory limit. What memory limit is set in php.ini? Perhaps it is lower
              > > > than what was set on your last machine?
              > > >[/color]
              > >
              > >[/color][/color]

              Comment

              Working...