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" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> 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
>



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to