I want to allow my user to delete a file. He does this by entering the file name in a form and submits it.
My code for the delete is:
but if the delete doen't work, e.g., the file is not there, I get (in my test) the following message and I suppose my user will get the same message.
"Warning: unlink(dinapoli_anntest.jpg) [function.unlink]:
No such file or directory in C:\xampp\htdocs\Annuaire\AF_DeleteFile.php on line 40"
Is there something I can do to prevent getting this message. (I give my user my own message.)
Thank you / Danke!