Program Looping ?

From: Date: Fri, 29 Mar 2002 06:56:17 +0000
Subject: Program Looping ?
Groups: php.general 
Request: Send a blank email to php-general+get-90647@lists.php.net to get a copy of this message
I've written a script that checks my email. However, when I run the script (from the command line) -- I want it to loop with a 5 minute delay and the ability to stop the program anytime by pressing a key on the keyboard (say) the ~ key. Anyone know how to do this? <? function check_mail() { // my email code is here } check_mail(); ?> thanks. jason

« previous php.general (#90647) next »