Cronjob problem |
[eluser]Nial[/eluser]
Edit: initially posted this in the wrong location, have posted it here! Sorry for yet another post, but I've got yet another problem! I'm trying to setup a cronjob that runs via CI. I checked out the associated wiki entry (http://codeigniter.com/wiki/Category:Adv...ronScript/) and found the information there very helpful. I setup a folder called cron in my root directory, and copied index.php into it (renaming it cron.php), and made the following changes: Code: set_time_limit(0); Where cron and update_jobs are the controller and function being called. However, using the following cronjob command: Quote:php -q /home/part/public_html/wb/cron/cron.php I receive the following error: Quote:Warning: require_once(../system/codeigniter/CodeIgniter.php): failed to open stream: No such file or directory in ]. Now, cron is a folder in the root directory. So ../system _should_ be pointing it in the right direction, but I'm not having any luck! Suggestions? As for a second question, I found the following suggestion for securing the cron controller on the forum, and wanted input on it: Code: function Cron() { |
Messages In This Thread |
Cronjob problem - by El Forum - 06-23-2008, 05:02 PM
Cronjob problem - by El Forum - 06-24-2008, 08:10 AM
Cronjob problem - by El Forum - 09-01-2008, 03:18 PM
Cronjob problem - by El Forum - 09-01-2008, 03:52 PM
Cronjob problem - by El Forum - 09-01-2008, 04:17 PM
Cronjob problem - by El Forum - 09-01-2008, 04:28 PM
Cronjob problem - by El Forum - 09-01-2008, 04:39 PM
Cronjob problem - by El Forum - 10-20-2008, 02:01 AM
Cronjob problem - by El Forum - 10-20-2008, 02:07 AM
|