Welcome Guest, Not a member yet? Register   Sign In
Cron job bootstrapper: what is the 'full absolute file/path of my CodeIgniter index.php file'
#1

[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');
and it is working fine in one site.

but in another site it results error like,
Code:
<br />
<b>Warning</b>:  array_shift() [<a href='function.array-shift'>function.array-shift</a>]: The argument should be an array in <b>/home/content/m/o/n/reallycool/html/system/duty/cron.php</b> on line <b>54</b><br /> <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?


Messages In This Thread
Cron job bootstrapper: what is the 'full absolute file/path of my CodeIgniter index.php file' - by El Forum - 05-08-2009, 01:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB