i want to schedule a task to run at certain time in php and i am using codeigniter framework .
so want to write a batch file to execute the given function in a given controller. Ihave written a batch file for simple php file its working correctly but giving an error while writing for the codeigniter.
below is my batch file for codeigniter
C:\xampp\php\php.exe -f C:\xampp\htdocs\DatabaseServices\index.php\controller_name\FUNCTION_NAME
it is giving an error ‘unable to load the file’
See the Codeigniter Documentation on the CLI interface.
Make sure you are sending the right arguments for your controllers.
In your case: