Page 1 of 1
PHP 5 Auto Executable Script
Posted: Wed Sep 20, 2006 5:07 am
by Farry
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].
Posted: Wed Sep 20, 2006 5:09 am
by Weirdan
Posted: Wed Sep 20, 2006 5:20 am
by Farry
Thanks Weirdan. Ok my apoligies. Tell me that how can i schedule a .php task into Cron at my Webserver.
Posted: Wed Sep 20, 2006 6:33 am
by volka

cron and ftp are not related.
Posted: Wed Sep 20, 2006 7:00 am
by Farry
I've scheduled a task but its not working. Can you please tell me the proper way to configure it and how to specify the script [.php] to execute.
Regards.
Posted: Wed Sep 20, 2006 9:22 am
by ibbo
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
Posted: Wed Sep 20, 2006 12:03 pm
by Farry
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.
Posted: Thu Sep 21, 2006 4:33 am
by Farry
How can i configure Cron job while using Apache as SERVER API. Where can i get lynx in my admin panel.
Posted: Thu Sep 21, 2006 8:11 am
by ibbo
By using full paths like I said.
* * * * * /path/to/php /path/to/php-scrip.php