[PHP] How to completly remove a file?

2001-03-07 Thread Jan Grafström

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 doesnt 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] How to completly remove a file?

2001-03-07 Thread Ankur Verma

try using unlink()
http://www.php.net/manual/en/function.unlink.php

hope that helps

Ankur Verma
HCL Technologies
Noida

- Original Message -
From: "Jan Grafstrm" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
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 doesnt 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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]