Advertisement

02.01.2008 at 12:41PM PST, ID: 23130777
[x]
Attachment Details

PHP script to delete all files in a folder older than X days

Asked by mixart in PHP Scripting Language

Tags: php

I'm looking for a way in PHP to delete all files in a folder that are older than X days.

I have a temp folder and would like to run this script each time a particular PHP page is called so it cleans up old files.Start Free Trial
Related Solutions: PHP unlink with loop
[+][-]02.01.2008 at 12:49PM PST, ID: 20800542

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: PHP Scripting Language
Tags: php
Sign Up Now!
Solution Provided By: hernst42
Participating Experts: 2
Solution Grade: A
 
 
[+][-]02.01.2008 at 01:04PM PST, ID: 20800681

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.01.2008 at 03:27PM PST, ID: 20801802

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.01.2008 at 07:13PM PST, ID: 20802820

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628