Suppose I have a folder name 'tempF' now i want to write a script in php inside the folder so that whenever the file is hit it will delete all the files inside 'tempF' including the script itself. What is the best possible way to do it in php. I have tried recursive unlink but it is not deleting the script itself.
Thanks in advance.