note 15372 added to function.unlink
| From: | artmelkon at netscape dot net | Date: | Fri, 07 Sep 2001 00:30:48 +0000 |
| Subject: | note 15372 added to function.unlink | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-17749@lists.php.net to get a copy of this message | ||
unlink() function dosen't work with windows98, but it dose work on NT
with apache server
<?php
$file="e:\\htdocs\\dev\\lnd\\test\\Copysendmail.php";
if (file_exists($file)) {
unlink("$file");
print "File deleted!";
} else {
print "file exists!";
}
?>
http://www.php.net/manual/en/function.unlink.php