When you use a PHP scipt to create a directory or file you will not be the owner of the directory or file it creates because the script does not run as you. You could write a PHP script that will delete the directories and files you create with another PHP script.
Oh, and welcome to the family!