BRADERY Posted October 7, 2010 Share Posted October 7, 2010 Well I usually run my scripts in CLI.. I have it do something then sleep for x amounr of settings, is there anyway to make it show me the seconds counting down instead of just a blinkin cursor? Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted October 7, 2010 Share Posted October 7, 2010 You would have to use a loop, something like this: <?phpfunction mysleep($secs) { while ($secs > 0) { sleep(1); echo $secs . ' . '; --$secs; }}mysleep(10);?> Ken Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.