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.
file exist
Moderator: General Moderators
- gite_ashish
- Forum Contributor
- Posts: 118
- Joined: Sat Aug 31, 2002 11:38 am
- Location: India
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.
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.