PDA

View Full Version : how to run php script in specific time


seco
04-14-2007, 07:51 AM
Hi
i want to run any php script in a specific time
ex. i want to delete some data from the database after 1 hour or one year and the script it self will do that

how can i do that?

thanks in advance.

davidj
04-14-2007, 08:49 AM
if your using linux then you could fire the php script using a cron

if your using windows then do the same using a schedule or a .bat script

seco
04-14-2007, 09:18 AM
thanks for reply

my server is linux
how can fire it in cron

thanks

davidj
04-14-2007, 09:53 AM
http://www.linuxhelp.net/guides/cron/