zmex Posted March 18, 2007 Share Posted March 18, 2007 Hi, i'd like to know if this can be done in php: Computer 1 sends every 10 minutes a file to Computer 2. This Computer 2 is actually a web hosting service and i don't have a full control. I want to run a script on this Comp2, that will check every 30 minutes, if the file exist and its timestamp is no older than 30 minutes. If it's older, then sends me a notification email (in case if Computer 1 freezes). All ok, but how can i run the script every X minutes? Thanks! Link to comment https://forums.phpfreaks.com/topic/43186-solved-run-a-script-every-x-minutes/ Share on other sites More sharing options...
fert Posted March 18, 2007 Share Posted March 18, 2007 This is called a cron job Link to comment https://forums.phpfreaks.com/topic/43186-solved-run-a-script-every-x-minutes/#findComment-209698 Share on other sites More sharing options...
zmex Posted March 18, 2007 Author Share Posted March 18, 2007 Thanx, but how can i set up a cron job to execute a php script? Link to comment https://forums.phpfreaks.com/topic/43186-solved-run-a-script-every-x-minutes/#findComment-209703 Share on other sites More sharing options...
AndyB Posted March 18, 2007 Share Posted March 18, 2007 http://www.google.ca/search?hl=en&q=set+up+a+cron+job&meta= If you have decent web hosting, there will be an idiot-proof cron set up utility Link to comment https://forums.phpfreaks.com/topic/43186-solved-run-a-script-every-x-minutes/#findComment-209707 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.