1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

php

Discussion in 'BlackHat Lounge' started by sergbot, Aug 4, 2011.

  1. sergbot

    sergbot Junior Member

    Joined:
    Jan 20, 2010
    Messages:
    172
    Likes Received:
    23
    i need to add something to a php snippet

    if something takes more then 20 seconds. i wanna skip to a section later in the snippet

    ty :D

    id google it. but i have 30 minutes to finish my trigonometry hw.
     
  2. Morfiy

    Morfiy Newbie

    Joined:
    Aug 2, 2011
    Messages:
    36
    Likes Received:
    2
    Occupation:
    private IT
    Location:
    LA
    Let's try to solve your problem.
     
  3. sergbot

    sergbot Junior Member

    Joined:
    Jan 20, 2010
    Messages:
    172
    Likes Received:
    23
    i
    maybe some kind of a timer will do.

    like a while loop where it sleeps 1 second a pass and when it gets to 20 it will do a go to
     
  4. furiouz

    furiouz Power Member

    Joined:
    Apr 24, 2009
    Messages:
    507
    Likes Received:
    123
    good luck with your homework.
    study php and stop asking silly questions :cool:
     
  5. sergbot

    sergbot Junior Member

    Joined:
    Jan 20, 2010
    Messages:
    172
    Likes Received:
    23
    bumpp
     
  6. OldFatGuy

    OldFatGuy Regular Member

    Joined:
    Jun 4, 2009
    Messages:
    253
    Likes Received:
    149
    Really need more info... Using a goto is "bad"... code should be structured differently.. regardless...

    Code:
    
    $etime = time() + 20;
    
    while( time() < $etime ){
    
     loop running the snippet and if it gets done, go to somewhere else.
    
    }
    
    goto othercode;
    
    
    othercode: