I want to remove all files and dirs except for certain files whose names I want to specify. Is there any PHP script that can help me?
Here is an example:
files in "database" dir are:
[include] [img] [file] index.php index.html .htaccess index.jpg index.png readme.txt video.mp4 music.mp3
I want to remove all files except
index.php and the
Is there any command that can save these files and remove the other files or any php code?