Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Apr 2004
    Thanked 0 Times in 0 Posts

    executing function at a later time

    I'm making a game sort of thing in PHP and I was wondering if there was a way in PHP that I can pause the execution of a function after x seconds. I don't want the whole script to stop working though, so for example
    // function 1

    (pauses for 10 seconds) {
    // function 2

    // function 3

    i want the script to execute like normal, but pause for 10 seconds before executing function 2, so it would execute function 1 and function 3 then 10 seconds later, execute function 2

    this is exactly like the fork() statement found in MOO programming

    go here to get a clearer definition.

    is there a way to do this in PHP?
    Last edited by o0katz0o; 05-07-2004 at 08:29 AM.

  2. #2
    Master Coder
    Join Date
    Jul 2002
    Thanked 0 Times in 0 Posts

    ===> make sure to read the usercomments for less resourceeating hacks !
    Posting guidelines I use to see if I will spend time to answer your question : http://www.catb.org/~esr/faqs/smart-questions.html


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts