Hello
take a look a the Pear File_Find class
require_once 'File/Find.php';
$fs = new File_Find;
$data = $fs->maptree('my_dir');
$data[0] contains all directorys
$data[1] all files
$ok = 0;
$err = 0;
foreach ($data[1] as $key)
{
if (unlink($k
Tim Burgan wrote:
Hello,
How can I delete ALL files within a specified directory every 20 days?
Does anyone know of any code-snippets that are around at the moment that
are able to do this? (And where I can find them?)
Thanks
Tim
Write a script that will delete them, and set the script to run on
On Tue, 2005-02-15 at 02:12 +1030, Tim Burgan wrote:
> Hello,
>
> How can I delete ALL files within a specified directory every 20 days?
> Does anyone know of any code-snippets that are around at the moment that
> are able to do this? (And where I can find them?)
>
> Thanks
>
> Tim
>
What oper
On Tue, 15 Feb 2005 01:22:42 +1030, Tim Burgan <[EMAIL PROTECTED]> wrote:
> How can I delete ALL files within a specified directory every 20 days?
> Does anyone know of any code-snippets that are around at the moment that
> are able to do this? (And where I can find them?)
You can put a tmp file i
> How can I delete ALL files within a specified directory every 20 days?
> Does anyone know of any code-snippets that are around at the
> moment that are able to do this? (And where I can find them?)
>
> Thanks
>
> Tim
Sounds more like a job for cron than for PHP - "man crontab" should set you
[snip]
How can I delete ALL files within a specified directory every 20 days?
Does anyone know of any code-snippets that are around at the moment that
are able to do this? (And where I can find them?)
[/snip]
Create a script that deletes files in the directory and then CRON it.
http://www.unixge
Hello,
How can I delete ALL files within a specified directory every 20 days?
Does anyone know of any code-snippets that are around at the moment that
are able to do this? (And where I can find them?)
Thanks
Tim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php
Hello,
How can I delete ALL files within a specified directory every 20 days?
Does anyone know of any code-snippets that are around at the moment that
are able to do this? (And where I can find them?)
Thanks
Tim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.p
8 matches
Mail list logo