Php clean script needed.

Discussion in 'Programming' started by giresse, Oct 17, 2007.

  1. #1
    I have a script running and it creates files of a certain size does anyone have a php script i can use to delete all files under 130k everyday via cron. If anyone has the php code i can use please post it. I want to use php so i can manually execute when needed and also setup a cron daily to selete any files.

    Thank you
     
    giresse, Oct 17, 2007 IP
  2. ste.richards

    ste.richards Guest

    Messages:
    46
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You would just need to use the following functions

    filesize()
    opendir()
    readdir()
    unlink()

    Do you know much PHP?
     
    ste.richards, Oct 17, 2007 IP
  3. giresse

    giresse Peon

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    no unforunately not. if you have a script available or know of a place to purchase please reply.

    thanks
     
    giresse, Oct 29, 2007 IP
  4. dpfreaks

    dpfreaks Peon

    Messages:
    37
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    If you still need this, I can develop this code, PM me for price with this thread URL
     
    dpfreaks, Oct 29, 2007 IP