Forum Moderators: coopster
i am trying to delete a file using the unlink function but it just is not working. i just get the Could not delete message. Is there anyway to find out exactly what is wrong? I've tried the exact path which is C:/domain/wwwroot/temp/0000000.txt but it just does not delete. Also i dont think it can be related to permissions because the 0000000.txt was created automatically by a script. The code i used is as follows:
<?
$delete = unlink("C:/domain/wwwroot/temp/0000000.txt");
if($delete)
{
echo "Succesfully Deleted";
}
else
{
echo "Could not Delete";
}
?>
thanx in advanced.