3

What are the steps to be taken in xampp[codeigniter] to use cron and how to make the cron to call our function in XAMPP Windows? Do we need to download any exe to run this cron?

  1. create a batch file to run your php script using php executable "C:\xampp\php\php.exe C:\wamp\www\index.php"
  2. add this batch file in Scheduled Task in Windows control panel.

how to create a batch file thats the code to be written inside batch file?

dude
  • 3,680
  • 8
  • 29
  • 50
  • look at this question http://stackoverflow.com/questions/4231539/run-a-php-script-as-a-background-process-in-wamp-server/4231634#4231634 – Imran Naqvi Nov 11 '11 at 11:18
  • @ImranNaqvi 1.create a batch file to run your php script using php executable "C:\wamp\php\php.exe C:\wamp\www\index.php" add this batch file in Scheduled Task in Windows control panel. – dude Nov 11 '11 at 11:22
  • See this: http://stackoverflow.com/questions/9894804/use-php-to-set-cron-jobs-in-windows/22772792#22772792 – Adrian P. Mar 31 '14 at 21:55

0 Answers0