Results 1 to 3 of 3
  1. #1

    How to get a file deleted from a folder in php

    Hello
    I'm looking for a couple lines of code I can use that can say
    Delete the OLDEST file from a particular folder each time the script is executed.

    FOr example.
    From folder "TEST" remove the oldest file in the directory (of say 50 files)

    Thanks for any ideas!

  2. #2
    Is that the date of creation or last modified / accessed?

    kosta

  3. #3
    last created....
    Thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •