I have a problem when using unlink in my Win 7 machine. This is my code in getFile.php
$file_name = 'C:\xampp\htdocs\fw\tmp\my_file.php';
$myfile = fopen($file_name , 'a');
unlink(''.$file_name );
everytime I execute the code, i get an error message
Warning: unlink(C:\xampp\htdocs\fw\tmp\my_file.php) [function.unlink]: Permission denied in C:\xampp\htdocs\fw\libraries\getFile.php on line 79
Anybody has a solution ?
Thanks before,
You cann’t remove files that are opened