I was wondering how can i call the same file every x amount of time.I am used to ajax, but this is only for when a website has users, i am not expecting any users i am just trying to make some operations on some files every x amount of time, lets say every 20 minutes. thank you. Does anyone know of some methods that can help me with this?
You need to do it on server side. Did you try cron jobs?
This might help you, the link explains how to setup cron job in hostagator. The video in the link is well enough for you to go I guess
http://support.hostgator.com/articles/cpanel/how-do-i-create-and-delete-a-cron-job
Type this at the command line on your linux server:
crontab -e
add this to the file and save:
20 * * * * curl -s http://example.com
this will fetch that url every 20 minutes, the -s option to curl just silences any output.