troubleshooting Question

PHP - delete similar named files from folder

Avatar of sabecs
sabecs asked on
PHP
2 Comments1 Solution231 ViewsLast Modified:
Hi,
If I have the following files in my http://www.mywebsite.com/uploads/ folder ,
What PHP command should I use to delete all files starting with the "item760_" ?

Thanks in advance for your feedback.

item757_1.jpg
item757_1_med.jpg
item757_1_sml.jpg
item757_1_swg.jpg
item757_1_tny.jpg
item760_1.jpg
item760_1_med.jpg
item760_1_sml.jpg
item760_1_swg.jpg
item760_1_tny.jpg
item762_1.jpg
item762_1_med.jpg
item762_1_sml.jpg
item762_1_swg.jpg
item762_1_tny.jpg
item764_1.jpg
item764_1_med.jpg
item764_1_sml.jpg
item764_1_swg.jpg
item764_1_tny.jpg
item766_1.jpg
ASKER CERTIFIED SOLUTION
Nem Schlecht
IT Engineering Manager
Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros