I.A. Gray <mailto:[EMAIL PROTECTED]> on Thursday, June 10, 2004 3:03 AM said:
> I am wanting to use a PHP script to check on an hourly/daily basis on > a few things- ie links on my sites, whether the sites are up and > running and also to send an e-mail to me. can you create a crontab for your user? what you'd need to do is make a file with a cron rule in it then feed that to 'crontab'. man crontab for more info. > I can't > really have this on a web page as wouldn't it time out? well it would only time out if the page was taking a really long time to finish processing. otherwise the page could sit there forever and not time out. what you could do in this case is keep a browser window open and use the meta-refresh header to refresh the page at a given interval. this is hardly an ellegant solution but it would work as long as the browser was kept open. > I don't have > my own server and so use a hosting company. Is there a way of > running a PHP script on a regular basis (say every 10 or 30 mins, or > hourly or daily)? read above. > Does anyone > know of any decent link checkers written in PHP that I could > implement? in php no. but for regular windows program there's "xenu link sleuth". chris. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php