Results 1 to 5 of 5

Thread: Auto clear code..

  1. #1

    Thread Starter
    Admodistrator |2eM!x's Avatar
    Join Date
    Jan 2005
    Posts
    3,900

    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?

  2. #2
    Frenzied Member sciguyryan's Avatar
    Join Date
    Sep 2003
    Location
    Wales
    Posts
    1,763

    Re: Auto clear code..

    Yea, it can be done using a chron job but it would probably eat bandwidth....


    RyanJ
    My Blog.

    Ryan Jones.

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Auto clear code..

    Don't cron jobs run on the server itself? That wouldn't kill any bandwidth then...

  4. #4

    Thread Starter
    Admodistrator |2eM!x's Avatar
    Join Date
    Jan 2005
    Posts
    3,900

    Re: Auto clear code..

    okay, can anyone explain it to me here then? thanks so much

  5. #5
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    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
  •  



Click Here to Expand Forum to Full Width