![]() |
Cron job bootstrapper: what is the 'full absolute file/path of my CodeIgniter index.php file' - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Cron job bootstrapper: what is the 'full absolute file/path of my CodeIgniter index.php file' (/showthread.php?tid=18494) |
Cron job bootstrapper: what is the 'full absolute file/path of my CodeIgniter index.php file' - El Forum - 05-08-2009 [eluser]russel[/eluser] hi there, i am now working with cron job in codeigniter. the codeigniter bootstrapper wiki seems a good solution to CI cron. there is a line in wiki code: Code: define('CRON_CI_INDEX', '/var/www/vhosts/intranet/index.php'); // Your CodeIgniter main index.php file i put for both sites: Code: define('CRON_CI_INDEX', '/var/www/index.php'); but in another site it results error like, Code: <br /> i thing i am missing the CRON_CI_INDEX in this case. the question is how can i get the 'Main CI index.php file' location? Cron job bootstrapper: what is the 'full absolute file/path of my CodeIgniter index.php file' - El Forum - 05-08-2009 [eluser]russel[/eluser] don't understand why this topic is showing as 'old post'. Cron job bootstrapper: what is the 'full absolute file/path of my CodeIgniter index.php file' - El Forum - 05-08-2009 [eluser]eoinmcg[/eluser] Hi Russel, You can get the ‘Main CI index.php file’ location as follows: Code: echo BASEPATH.'/'.SELF; then for the Cron job bootstrapper try Code: define('CRON_CI_INDEX', BASEPATH.'/'.SELF); Hopefully that should do it... |