how to set cronjob in yii

I have one php script and i want that script to be run daily,

I want help, how to create a cronjob for that script to run daily and update column in database through yii?

thnx in advance

I’m not sure, but for create the cron, you must do from your web server.

For example

so you execute the cron

php yournamecronjob.php

Check this link

Two ways to run cron job

  1. Emulate Browser and

  2. Console mode