Auto delete certain file types with php.
Posted: Sat Jun 13, 2009 10:15 pm
I apologize in advance if I am asking on the wrong forum, or if I am asking a stupid question. Google turned up nothing, and this seemed to be the correct subforum.
What I want to create is a script that deletes certain types of files (.php and .php.mfh) in the same folder when run.
For example: A folder would contain autodel.php, x.php, x.php.mfh, and x.mfh. When run, autodel.php would delete all files with the suffixes .php, and .php.mfh. Thus, the script would delete x.php and x.php.mfh, while keeping itself intact, as well as other types of files.
I don't know how to achieve this, or if this is even possible. I would appreciate any help someone would have to offer.
What I want to create is a script that deletes certain types of files (.php and .php.mfh) in the same folder when run.
For example: A folder would contain autodel.php, x.php, x.php.mfh, and x.mfh. When run, autodel.php would delete all files with the suffixes .php, and .php.mfh. Thus, the script would delete x.php and x.php.mfh, while keeping itself intact, as well as other types of files.
I don't know how to achieve this, or if this is even possible. I would appreciate any help someone would have to offer.