Delete a File
Posted: Fri Jul 12, 2013 2:42 pm
Hello, I have created this code below, but though it works, it spits out a rather annoying error message.
It works, but the fact is it just gives out an error message and it's annoying.
It says "Permission denied" but it works.How?
<?php array_map('unlink', glob("uploader/uploads/".$file_name."".$file_extension."")); ?>
(The variables are defined earlier in the document, and it does delete the file I want, but it just randomly gives that error.)
It works, but the fact is it just gives out an error message and it's annoying.
It says "Permission denied" but it works.How?
<?php array_map('unlink', glob("uploader/uploads/".$file_name."".$file_extension."")); ?>
(The variables are defined earlier in the document, and it does delete the file I want, but it just randomly gives that error.)