Possible Duplicate:
PHP: running scheduled jobs (cron jobs)
How to run a PHP file in a scheduled task (Windows Task Scheduler)
i want execute php code in 1:00 clock in every day . Scorsese i know php running when web page viewed .
for example i want update field of my database in Specified time (e.g 1:00 clock).
there is way or not ?
thanks .
may be you could try with things like this one :
http://kevin.vanzonneveld.net/techblog/article/create_daemons_in_php/
Is for do one daemon with php and later configure it as you want. Other possibility is crontab and with it execute one file each 1m,2m,…( execute contrab -e for edit it and crontab -l for see it ) :
the last option is create one bash file like this one:
For you i think that the better solution is crontab with this configuration: