hey... I am not sure how to do this... but I need to open a folder on my server, then look at the files in the folder.... then if I find a file that meets a criteria - i want to delete it.
for example, I have a file list such as
1_hello.jpg
1_boo.gif
2_raaaa.gif
4_mad.jpg
etc etc
The numbers at the beginning indicate the userid and an image they have uploaded... I need to open the folder, tell the script that anything starting with a "1_" should be deleted....
any ideas?!