Page 1 of 1

sleep question

Posted: Wed Dec 30, 2009 9:45 pm
by peter986532
lol this may be a really noob question, but when i put:

Code: Select all

<?php
echo date('h:i:s');
sleep(15);
echo '<br>';
echo date('h:i:s');
?>  
I just get

Code: Select all

10:43:27
10:43:27  
Am I missing something or should it be doing that?

Re: sleep question

Posted: Wed Dec 30, 2009 10:03 pm
by requinix
And it does that every time you run it? And what you posted is exactly the same code?

Re: sleep question

Posted: Wed Dec 30, 2009 10:06 pm
by peter986532
yes and yes

Re: sleep question

Posted: Wed Dec 30, 2009 11:13 pm
by daedalus__
why do you need it? it can make it easier to put your server out

by the way it worked fine on my local machine

Re: sleep question

Posted: Fri Jan 01, 2010 5:52 pm
by peter986532
Ohhhh ok,
The server had it disabled under
disable_functions

Is there a way around this?

Re: sleep question

Posted: Fri Jan 01, 2010 5:57 pm
by peter986532
hahaha nvm I just used usleep