saleem145 Posted June 27, 2004 Posted June 27, 2004 Hello, I have written a PHP script to update my specials automatically. I would like to setup a cron job. To do this I need to be able to run the script from the command line. Is this true?? I cannot specify a URL for the cron job command?? When I try to run the script from the command line I get an error saying unablke to connect to database but when I run it thru IE it works. Any ideas?? Saleem
Acheron Posted June 27, 2004 Posted June 27, 2004 Unless you are hosting your own site, it's unlikely your host will allow you to run a Cron job from the command line. Most hosts (i.e. iPower) allow Cron jobs to be setup via the host's Admin CP.
saleem145 Posted June 27, 2004 Author Posted June 27, 2004 My hosting account provides cron jobs. Saleem
user99999999 Posted June 27, 2004 Posted June 27, 2004 Heres some info on how to set it up., http://www.phpfreaks.com/tutorials/28/0.php You should use 'php cronjob.php` you might need to change directories first like so 'cd /path to my store/;php cronjob.php'
Recommended Posts
Archived
This topic is now archived and is closed to further replies.