I am trying to delete a file on my server. I am able to upload files fine. However, when using the code below the file is not deleted from the server. The variable is being received properly because I am seeing the name of the file outputted from the echo.
Is there a different command used to delete a file from the server?
Thanks.
unlink($hdnFile);
echo "<p><center>You have <font color='#ff0000'>succesfully</font> deleted <b>$hdnFile</b>.</center></p>";