Re: how to delete files?
| From: | Marco Tabini | Date: | Thu, 14 Nov 2002 01:44:47 +0000 |
| Subject: | Re: how to delete files? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-124359@lists.php.net to get a copy of this message | ||
If your PHP allows it and you're on Linux,
exec ('rm -Rf /folder/*.php');
You also need the right permissions, of course.
Marco
--
------------
php|architect - The magazine for PHP Professionals
The monthly worldwide magazine dedicated to PHP programmers
Come visit us at http://www.phparch.com!
On Wed, 2002-11-13 at 20:48, Jeff Bluemel wrote:
> when this php script starts I want it to remove *.php
>
> how can I do this? will unlink accept a wild card?
>
>
> Jeff
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>