• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
two diffrent cron jobs

#1
[eluser]PHPraja[/eluser]
hi

to set a cronjob i followed the method given in wiki as in
http://codeigniter.com/wiki/Category:Adv...ronScript/

As per the above link, there an example is given to set a cron jon. In clean_cache.php set

Code:
$_SERVER['PATH_INFO'] = '/cron/cleancache';

If i have two or more cron jobs to run at difftent times should i create more files like 'clean_cache.php' and set diffrent PATH_INFO ? ie specify the diffrent function names. Or is there any other way where i can set different cron jobs in a single clean_cache.php? Can any one help me..

Thanks in advance


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.