From the name you can see that I am looking for a way to delete a file from another directory. All I can find on this issue is unlink (), but from what I read in the documentation and from testing this function, it removes the file name from the code into which you paste it. It seems to me that it is like closing a file, What I'm trying to do is actually delete the file using the code, so my user does not need to manually go to the folder and find the song that they just deleted from the mysql database.
source share