"Sunfire" <[EMAIL PROTECTED]> wrote: > was wondering about how you could run a script that automatically ran at > midnight every day and deleted records that matched a certain date stored in > a mysql table? any ideas how that supposed to work?.. > > i think the script has to be a chron task on linux but im not really sure > how to go about doing such a job..
man cron and man crontab. If PHP is compiled as a CGI or CLI then you can call the script directly, otherwise call it via the web using lyxn or wget. I'd opt for CGI or CLI if at all possible so that you don't need to send a request to the web server. I figure you know how to write the script and that it's just a matter of scheduling it. If not please be specific about the problem. This is asked pretty frequentl on php-general so between the archives and Google you should find what you're looking for quickly. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php