Re: Delete checked files
| From: | Nautilis | Date: | Mon, 25 Feb 2002 16:39:56 +0000 |
| Subject: | Re: Delete checked files | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-80379@lists.php.net to get a copy of this message | ||
Ups! I am very sorry.
As i am a newbie at php i thought, as you suggested, that this was for
developement with php.
Thx alot anyway
----- Original Message -----
From: "Sander Roobol" <sander@php.net>
To: "Nautilis" <josemsala@hotmail.com>
Cc: <php-dev@lists.php.net>
Sent: Monday, February 25, 2002 5:38 PM
Subject: Re: [PHP-DEV] Delete checked files
> PHP-DEV is for the development OF PHP, not for developing WITH PHP.
> Ask support questions on PHP-GENERAL (php-general@lists.php.net).
>
> Sander
>
> On 2002.02.25 17:04 Nautilis wrote:
> > Hi everybody,
> >
> > I show a list of files that I upload to the user's folder using the
> > next
> > code:
> >
> > $path= "../clients/$user";
> > $dir = opendir ($root);
> > while ($archivo = readdir ($dir))
> > {
> > $size = filesize("$path/$filename");
> > $size = ($size/1024);
> > $size = intval($size * 100 ) / 100;
> > if ($filename!= "." && $filename!="..")
> > {
> > echo "<tr><td><a
> > href='$path/$filename'>$filename</a></td><td>$size
> > Kb</td></tr>";
> > }
> > }
> >
> > I want to add a checkbox in every file i get in the user's folder. My
> > question is:
> >
> > Is there any way to use some kind of function to delete selected
> > files? I am
> > not sure if i can use javascript to evaluate which is checked and how.
> > And
> > after that evaluation, how to call a unlink ($filename) to delete the
> > files.
> >
> > Any help would be greatly appreciated.
> >
> > Nau
> >
> >
> >
> >
> >
> > --
> > PHP Development Mailing List <http://www.php.net/>
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> >
>