I need some help regarding an automatic executable script. How can i make my script execute automatically without opening a single browser time to time.
I've to update a database transparently with the time period of 1 hr [CSV from remote server and then upload it to database].
PHP 5 Auto Executable Script
Moderator: General Moderators
PHP 5 Auto Executable Script
Last edited by Farry on Wed Sep 20, 2006 2:01 pm, edited 1 time in total.
Heres one of my newsletter cron jobs
30 18 19 * * /usr/bin/perl /home/ibbo/bin/pmail.pl /home/ibbo/bin/sbscribedaa
Explained
30 (mins)
18 (hour)
19 (day)
* (irrelavant but for the month of the year [1-12])
* (irrelavant but for the day of the week [0-6])
You need to use full paths for your jobs to work so
to run a job today (20th) at 7pm
00 19 20 * * /usr/bin/php /path/to/php-script.php
Ibbo
30 18 19 * * /usr/bin/perl /home/ibbo/bin/pmail.pl /home/ibbo/bin/sbscribedaa
Explained
30 (mins)
18 (hour)
19 (day)
* (irrelavant but for the month of the year [1-12])
* (irrelavant but for the day of the week [0-6])
You need to use full paths for your jobs to work so
to run a job today (20th) at 7pm
00 19 20 * * /usr/bin/php /path/to/php-script.php
Ibbo
I've scussfully upload and scheduled the file into Cron but it says now the <?php, function functionName(), and lots more like this errors so can you tell me how can i execute a PHP file through Cron n what lines should i include into this file to be execute from the Cron. I've Server API is Apache.