I have created code to create file automatically in a particular path folder. I wanted to delete that file using php code. I have used the function
unlink("../game_page/$fname.php");
here the filename is stored in the variable $fname and it is a php file. But this code is not working. Can anyone say how to delete that particular file in that path?