On Tue, 23 Dec 2003 19:08:28 -0800 (PST), you wrote:
>>How can I unlink files in a directory that are, for example older than 1
>>hour?
>
>`find /path/to/dir -cmin +60 -type f -print0 | xargs -0 rm -f`;
Alternatively, for cross-platformness user opendir() and readdir() to
iterate over the directo
>How can I unlink files in a directory that are, for example older than 1
>hour?
`find /path/to/dir -cmin +60 -type f -print0 | xargs -0 rm -f`;
-
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com
How can I unlink files in a directory that are, for example older than 1
hour?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
3 matches
Mail list logo