ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.


AddThis Social Bookmark Button
  Apache Web-Serving with Mac OS X: Part 3
Subject:   Automatic PHP tasks
Date:   2002-10-28 16:50:45
From:   anonymous2
Response to: Automatic PHP tasks

I found a simple solution. Add a scheduled task to your /etc/crontab file and use the curl command to excute any PHP script on your site. Example:

0 0 * * * * curl http://www.yoursite.com/yourscript.php

... then execute this in the terminal:

crontab crontab

For more info about crontab, see "Learning the Mac OS X Terminal: Part 1" <http://www.macdevcenter.com/pub/a/mac/2001/12/14/terminal_one.html>

1 to 1 of 1
  1. Automatic PHP tasks
    2002-10-28 17:00:00  anonymous2 [View]

1 to 1 of 1