Re: Unlink file older then 7 days

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Did you actually READ my previous post that you replied to?...

On Wed, July 18, 2007 1:29 am, chris@xxxxxxxxxxxx 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?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux