Jump to content

unlink problemo

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
Guest_Jaan_*

Guest_Jaan_*
  • Guests
$file = "files/".$filename.".txt";

if(unlink($file) == false){

echo "<font id='base-text'>Can not delete the temporary file!</font>";

}

And I get this error:

Quote

Warning: unlink(files/myfile.html.txt) [function.unlink]: Permission denied in D:\Program Files\Abyss Web Server\htdocs\fm\index.php on line 129
Can not delete the temporary file!

But I test this script on windows so I don't know why I get this error.. Maybe you know

#2
Guest_Jaan_*

Guest_Jaan_*
  • Guests
Ah fixed it.. i didnt close that file with fclose($open); :D