Page 1 of 1

file exist

Posted: Tue Aug 26, 2003 2:14 am
by superman
can PHP perform the task that run the page only once a year, something like check the file has run before, if yes, then show message that the page already run, if not, run the script.
thank you for help.

Posted: Tue Aug 26, 2003 2:31 am
by gite_ashish
If you want to run a php script once in a year you can use "crontab" for it.
Cron is available on UNIX systems. Windows is also having something similar called Schedular.
If you don't want to use crontab then you need to maintain info somewhere (database or text file) that this file has run once and if check this value on execution of the php file.

Posted: Tue Aug 26, 2003 2:37 am
by superman
can you help me how to write the code?
how to use 'Schedular' in windows platform?