Re: Unlink file older then 7 days
| From: | Richard Lynch | Date: | Sat, 21 Jul 2007 00:05:23 +0000 |
| Subject: | Re: Unlink file older then 7 days | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-259266@lists.php.net to get a copy of this message | ||
Did you actually READ my previous post that you replied to?...
On Wed, July 18, 2007 1:29 am, chris@aquanuke.com wrote:
> Ok thanks everyone...
>
> I need to throw in a wildcard, how would I do that.. I have this so
> far.
> which dont work.
>
> <?
> $filename = '/home/public_html/client/test/*.txt.asc';
...
[snip]
>> I think finding all the .txt.asc files would best be handled by
>> http://php.net/glob unless your PHP version is too old and
>> you need
>> to
>> http://php.net/opendir and
>> http://php.net/readdir to look at each
>> file
>> in turn...
PHP 5:
http://php.net/glob
PHP 4:
http://php.net/opendir
http://php.net/readdir
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?