in reply to Need help deleting *.bak files
The first thing that leaps out from your code is the example you were give uses push to add each item to the array whereas you just assign a different single element list to the array each time around. Also, consider using unlink to remove your files and check for success.
Cheers,
JohnGG
|
|---|