note 11626 added to unlink
| From: | dhaval_adams at yahoo dot com | Date: | Wed, 28 Feb 2001 06:02:56 +0000 |
| Subject: | note 11626 added to unlink | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-11650@lists.php.net to get a copy of this message | ||
Hi!
I just tried to unlink a file on Windows 98. It works.
My file had the following lines...
<?php
$delete = unlink("C:\\directory\\filename.extension");
if($delete)
{
echo "Succesfully deleted";
}
else
{
echo "Could not delete";
}
?>
http://www.php.net/manual/en/function.unlink.php