Hi all (...just luv this site!)
I have a script which deletes selected files.....it works fine except everytime i delete something it comes up with this warning message on the web browser:-
Warning: Unlink failed (Is a directory) in httpd/html/form_del.php on line 7
Anyone have an idea as to how to get rid of this message? here is the code i am using:
$delrec2=count($delfile);
for ($a=0;$a<=$delrec2;$a++){
$matchdate = $delfile[$a];
unlink("results/$matchdate"
}
I have a script which deletes selected files.....it works fine except everytime i delete something it comes up with this warning message on the web browser:-
Warning: Unlink failed (Is a directory) in httpd/html/form_del.php on line 7
Anyone have an idea as to how to get rid of this message? here is the code i am using:
$delrec2=count($delfile);
for ($a=0;$a<=$delrec2;$a++){
$matchdate = $delfile[$a];
unlink("results/$matchdate"
}