what type of system is the server? if linux, then you will have to schedule the script to run with cron. here is a tutorial that bdl wrote for that:(
http://codenewbie.com/tutorials/716.html ) if you are using windows, i think you can use 'scheduled tasks'
good luck!