Article:
 |
|
Apache Web-Serving with Mac OS X: Part 3
|
| Subject: |
|
Automatic PHP tasks |
| Date: |
|
2002-10-28 13:44:25 |
| From: |
|
anonymous2
|
|
|
|
I'm thrilled about my newly acquired PHP & MySQL knowledge. Thank you O'Reilly and OSX!
I currently include PHP in HTML Web pages, but I'm wondering if there's a way to create PHP tasks that run automatically at intervals (every hour or day), or at startup (run constantly in the background)? Any help or articles about this in relation to OSX would be greatly appreciated.
Thanks.
|
Showing messages 1 through 2 of 2.
-
Automatic PHP tasks
2002-10-28 16:50:45
anonymous2
[Reply | View]
-
Automatic PHP tasks
2002-10-28 17:00:00
anonymous2
[Reply | View]
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>