Re: How to completly remove a file?
| From: | Ankur Verma | Date: | Wed, 07 Mar 2001 09:04:51 +0000 |
| Subject: | Re: How to completly remove a file? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-42875@lists.php.net to get a copy of this message | ||
try using unlink()
http://www.php.net/manual/en/function.unlink.php
hope that helps
Ankur Verma
HCL Technologies
Noida
----- Original Message -----
From: "Jan Grafström" <jan@lillemanshus.com>
To: <php-general@lists.php.net>
Sent: Wednesday, March 07, 2001 2:08 PM
Subject: [PHP] How to completly remove a file?
> Hi!
> When I run this PHP my file idb.xml returns empty but how do I do if I
> then whant to remove the file idb.xml. I just doesn´t want it empty, I
> want it to disappeare.?
> <?
> $fp = fopen("idb.xml", "w");
> fclose ($fp);
> ?>
> Thanks for help.
> Jan
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net