Page 1 of 1

timer question..

Posted: Sun Jul 06, 2003 3:42 am
by EQuAliZer
hi..
i was wondering, how do i make a timer that execute an update every X minutes..

i have tried something very lame.. a script that will update once in 5 minutes.
<?

$d=date("i");
if (eregi(5, $d))
{
#script content
}
?>

the problem is.. it wont "auto update", because i have to click on the file in order to update..
i hope you understood me.. thanks for everyone who helps.

Posted: Sun Jul 06, 2003 4:03 am
by m@ndio
If you have access to cron jobs on your server you can set one up to run a script every X days at X time...

Posted: Sun Jul 06, 2003 4:09 am
by EQuAliZer
no i dont have access to cron..

Posted: Sun Jul 06, 2003 4:12 am
by m@ndio
I really don't think there is any other way... unless you write a windows application to ping the script whenever you want it...

Posted: Sun Jul 06, 2003 5:01 am
by m3mn0n
Sure there is!


If you're running windows: http://www.devnetwork.net/forums/viewto ... ndows+cron