file exist

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
superman
Forum Commoner
Posts: 29
Joined: Tue Jul 08, 2003 2:54 am

file exist

Post 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.
User avatar
gite_ashish
Forum Contributor
Posts: 118
Joined: Sat Aug 31, 2002 11:38 am
Location: India

Post 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.
superman
Forum Commoner
Posts: 29
Joined: Tue Jul 08, 2003 2:54 am

Post by superman »

can you help me how to write the code?
how to use 'Schedular' in windows platform?
Post Reply