execution to the end?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Man-wai Chang

    #1

    execution to the end?


    If a user hit stop button on his/her browser after a php has started,
    will the php script be continued to the end?

    --
    iTech Consulting Co., Ltd.
    Expert of ePOS solutions
    Website: http://www.itech.com.hk (IE only)
    Tel: (852)2325 3883 Fax: (852)2325 8288
  • peter

    #2
    Re: execution to the end?

    If a user hit stop button on his/her browser after a php has started, will
    the php script be continued to the end?
    Yes it should. The server has no knowledge of wether the user has pressed
    stop on their browser.


    Comment

    • Rik

      #3
      Re: execution to the end?

      peter <submit@flexiwe bhost.comwrote:
      >If a user hit stop button on his/her browser after a php has started,
      >will
      >the php script be continued to the end?
      >
      Yes it should. The server has no knowledge of wether the user has pressed
      stop on their browser.
      Don't present a misconception as truth. It depends on the length of the
      script, and the server _does_ know about aborted connections. Or did you
      think the server kept sending you those xxx MB's of data you aborted to
      download after the first 4KB was received? That's why we have functions
      like:

      De pagina die je zoekt bestaat niet of is verplaatst. Doorzoek PHP.nl of bezoek een van de populaire secties.

      De pagina die je zoekt bestaat niet of is verplaatst. Doorzoek PHP.nl of bezoek een van de populaire secties.

      De pagina die je zoekt bestaat niet of is verplaatst. Doorzoek PHP.nl of bezoek een van de populaire secties.


      In short: if you have a longer scrit and it's critical it will run untill
      the end, use ignore_user_abo rt().

      HTH,
      --
      Rik Wasmus
      Posted on Usenet, not any forum you might see this in.
      Ask Smart Questions: http://tinyurl.com/anel

      Comment

      Working...