Re: unlink?
| From: | Wayne | Date: | Sun, 02 Mar 2003 03:58:06 +0000 |
| Subject: | Re: unlink? | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-18801@lists.php.net to get a copy of this message | ||
below should work, no matter what type of file path you use :)
<?php
//$filepath = "C:\Servers\php files\file to delete.php";
//$filepath = "delete_this.php";
$filepath = "C:\Servers\Root\file.php";
$i = unlink($filepath);
if($i){
echo "File Deleted";
}else{
echo "Failed To Delete File";
}
?>
"Paul Dymecki" <pdymecki@hotmail.com> wrote in message
news:F167jfUKWTa9tfmKsX00000213f@hotmail.com...
> Hello,
> I was wondering if anyone knows how to delete a file from the
> filesystem? I've been trying unlink but it doesn't seem to be working as
> expected. Do spaces in the file path have to be compensated for or
> something?
> thx for any help,
> Paul
>
>
>
>
>
> _________________________________________________________________
> The new MSN 8: smart spam protection and 2 months FREE*
> http://join.msn.com/?page=features/junkmail
>