smidwap
08-17-2003, 06:26 PM
Hey,
Anybody know of a way to pause the execution of a script in the middle of processing it in php, then after a set period of time let the execution of the script continue?
krumms
08-17-2003, 06:41 PM
why on earth do you want to do that?
zargon
08-17-2003, 06:51 PM
Try the sleep() function.
http://us3.php.net/manual/en/function.sleep.php
smidwap
08-17-2003, 07:30 PM
Exactly what I was looking for...thanks a bunch zargon...
...and trust me, there's always a use for it if php has built-in capabilities for it.
THW-Dave
08-18-2003, 04:15 PM
yup.
like displaying a splash screen.
blackbelt080
08-18-2003, 05:01 PM
i'll have to remember that function for future use...
take care,
smiley :D
smidwap
08-18-2003, 06:56 PM
Hehe...the more I think about it the more useful the function seems.
KDAWebServices
08-21-2003, 04:19 PM
Originally posted by thehostworks
yup.
like displaying a splash screen.
How would sleep help you? If you output the splash screen then use sleep(), then the header function to do a redirect you're going to get an error about headers already being sent. To display a splash screen you'd just put a meta redirect in with a time delay.