you sure can with an include, however, if the db is large, it may slow your index page down quite a bit
a better way would be to go to google and look up "run php page with cron"
that way you can have a cron job that runs a php script on whatever interval you would like, every minute, hour, day, whatever...