Stop a script?

Discussion in 'PHP' started by red-x, Sep 4, 2008.

  1. #1
    Is there any other way to stop a script from continuing without using die(); or exit();?

    Thanks in advance :)
     
    red-x, Sep 4, 2008 IP
  2. JEET

    JEET Notable Member

    Messages:
    3,832
    Likes Received:
    502
    Best Answers:
    19
    Trophy Points:
    265
    #2
    sleep(some time) will stop for the time specified, if that's what you want. :)
     
    JEET, Sep 4, 2008 IP
  3. Shoro

    Shoro Peon

    Messages:
    143
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #3
    There's also time_sleep_until(timestamp) that works like sleep but lets you specify an exact time you want the script to restart instead of an offset.
     
    Shoro, Sep 4, 2008 IP
  4. JAY6390

    JAY6390 Peon

    Messages:
    918
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Out of interest, why not use exit/die???
     
    JAY6390, Sep 5, 2008 IP
  5. jayshah

    jayshah Peon

    Messages:
    1,126
    Likes Received:
    68
    Best Answers:
    1
    Trophy Points:
    0
    #5
    jayshah, Sep 5, 2008 IP