Hi Steve,
I just responsed to this cron job question a few days ago. Here is the link that you might want to check out.
http://www.phpbuilder.com/forum/read.php3?num=1&id=123260&thread=123258
In your situation of requesting an http file, you need to enable the execution permission for webserver before you run it.
chmod 755 maintain.php
To schedule it as cron job:
- create a file name it schedule_task and add the following line in
30 17 * http://www.yoursite.com/maintain.php
It will be run at 5:30 pm everyday.
To schedule a task run the following command
- crontab schedule_task
To view its schedule
- crontab -l
To edit it
- crontab -e
Note: The f2s server that has maintain.php file should already installed PHP as CGI, and maintain.php should have the path to your PHP CGI on the top of file
#!/usr/local/php-cgi/bin/php -q
Bn