kristopherWindsor Posted February 14, 2007 Share Posted February 14, 2007 If I put a PHP file on a server, can I get that file to run every six hours without someone accessing the page? I want to automatically archive a page on another web site. [move] [/move] Link to comment https://forums.phpfreaks.com/topic/38407-solved-getting-a-php-file-to-run-automatically-every-few-hours/ Share on other sites More sharing options...
hitman6003 Posted February 14, 2007 Share Posted February 14, 2007 Use cron if you have a linux server or Task Scheduler if you have a windows server. Link to comment https://forums.phpfreaks.com/topic/38407-solved-getting-a-php-file-to-run-automatically-every-few-hours/#findComment-184217 Share on other sites More sharing options...
kristopherWindsor Posted February 14, 2007 Author Share Posted February 14, 2007 Thanks. I am just another user on this server, so I'm not sure how to access cron from the command line. ??? I put the phpinfo() line up; can I get more specific instructions? I am new to PHP and Linux (which I haven't run myself ). http://fusionware.ourproject.org/itech/microforum/phpinfo.php Link to comment https://forums.phpfreaks.com/topic/38407-solved-getting-a-php-file-to-run-automatically-every-few-hours/#findComment-184307 Share on other sites More sharing options...
o3d Posted February 14, 2007 Share Posted February 14, 2007 Check this out for linux: http://www.unixgeeks.org/security/newbie/unix/cron-1.html I just don't trust task scheduler, so i wrote a service to control and execute my php scripts. Link to comment https://forums.phpfreaks.com/topic/38407-solved-getting-a-php-file-to-run-automatically-every-few-hours/#findComment-184365 Share on other sites More sharing options...
kristopherWindsor Posted February 14, 2007 Author Share Posted February 14, 2007 Thanks. Link to comment https://forums.phpfreaks.com/topic/38407-solved-getting-a-php-file-to-run-automatically-every-few-hours/#findComment-184825 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.