Im not sure if this is doable in php so im posting here..i need a way to empty a text file on my server every 5 minutes without killing bandwith.
Would there be a good way here/even possible?
Printable View
Im not sure if this is doable in php so im posting here..i need a way to empty a text file on my server every 5 minutes without killing bandwith.
Would there be a good way here/even possible?
Yea, it can be done using a chron job but it would probably eat bandwidth....
RyanJ
Don't cron jobs run on the server itself? That wouldn't kill any bandwidth then...
okay, can anyone explain it to me here then? thanks so much :D
Well, basically a server has a program called a cron daemon running. This daemon has registered cron jobs. These jobs consist of a command line to be executed and timing information. The cron daemon lies dormant until it is time to execute one or more of its jobs.
The command line can be anything that's valid as a command line - usually it's a small shell script.
How exactly you configure your daemon depends on the daemon. For vixie-cron, you'd call crontab -e.
I don't know how different crons (or whatever it's called there) on Windows work.