|
-
May 5th, 2005, 09:58 PM
#1
Thread Starter
Admodistrator
Auto clear code..
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?
-
May 7th, 2005, 05:44 AM
#2
Re: Auto clear code..
Yea, it can be done using a chron job but it would probably eat bandwidth....
RyanJ
-
May 7th, 2005, 06:08 AM
#3
Re: Auto clear code..
Don't cron jobs run on the server itself? That wouldn't kill any bandwidth then...
-
May 7th, 2005, 11:40 AM
#4
Thread Starter
Admodistrator
Re: Auto clear code..
okay, can anyone explain it to me here then? thanks so much
-
May 7th, 2005, 12:27 PM
#5
Re: Auto clear code..
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.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|