Questions

Pause() function in PHP

we can pause the php execution while running the php process by using sleep() function. The pause() function given below,


function pause($seconds){
sleep($seconds);
}

delays or pause the program execution for the given number of seconds.

In HTML, need to use meta tags,
 

Your Answers

Your Name:
Your Answers :
<> is a code tag
Preview
Enter the verification code:

Answers

Harso
Dec 21 12 02:38:56
I tried the sleep() function but I do not know whay my server does not answer.
http://www.sitethatsell.com

Ian
May 23 11 10:58:53
kahn39, according to http://php.net/manual/en/function.sleep.php, it sleeps wherever you put it (see their time echoing example)

kahn39
Mar 16 10 02:40:14
This is not quite true. If you put sleep(5) ANYWHERE in your program, it will not START for 5 seconds. If you have it buried in 'if'... that should not take effect until late in the script - it STILL sleeps for 5 seconds then STARTS the script.
sleep is a terminal pause - NOT a script pause !