| Question : | Can I use php with cron on unix systems? | |
| | Answer : | Yes that's possible, how you do it depends a little on your installation.
1. If you have php installed as CGI on your system you can ex. simply do:
0 10 * * * /path/to/php /path/to/script > /dev/null
2. If you dont have php installed as CGI you can use a unix console program for fetching URLs, we reccommend lynx or wget.
Example of using lynx:
0 10 * * * lynx -dump http://fsck.dk/script.php > /dev/null
Example of using wget:
0 10 * * * wget http://fsck.dk/script.php > /dev/null
| | |