Quantcast
Channel: using PHP to search files to find certain files and delete them fast - Stack Overflow
Browsing latest articles
Browse All 3 View Live

Answer by walter nuñez for using PHP to search files to find certain files...

i think you need a recursive script to execute the work... you can try this: function listFolderFiles($dir){ $ffs = scandir($dir); unset($ffs[array_search('.', $ffs, true)]);...

View Article



Answer by Barmar for using PHP to search files to find certain files and...

Functions like unlink() require an exact pathname, they don't automatically expand wildcards. Use glob() to get a list of files matching a pattern, then you can use array_map() to call the function for...

View Article

using PHP to search files to find certain files and delete them fast

I need to copy content off my site to create another system, because the theme keeps getting hacked. The hacker keeps putting a .ico file that is a malware... So I need to create a php file that will...

View Article
Browsing latest articles
Browse All 3 View Live




Latest Images