Hello, I am making auction system and need to call function auctionEnd() every minutes. This function check if there are auction, which is past (ended). How I can do that?
Hello, I am making auction system and need to call function auctionEnd() every minutes. This function check if there are auction, which is past (ended). How I can do that?
cronjob + console app.
Thanks for fast replay.
Does it works on windows? Or I need to use php job scheduler?
As far as i know, cronjob doesn’t work on Windows. Equivalent to this is Windows own “Task Scheduler”. I doubt there will be problems in “Task Scheduler” executing “yiic.bat” or php.exe with the reference to the “yiic.php” file.
Before this, you could do few minutes of though and think of where are you planing to host your project. Because i have some doubts that in shared hosting environment you can call php executable directly.
Thanks for replay. Problem solved.
Solution: create file cron.bat in project/protected folder with text <code>C:\path\to\project\protected\yiic commandName</code> and with task scheduler create task to run cron.bat file and it works!