[PHP] Removing files from a directory

2001-08-23 Thread Niklas Lampén
I'm trying to remove files from a directory. I have this code to do it: This code is in a included file located at '/map/'. File including this code is located at '/'. Files to be removed are located at '/map/'. $Handle = opendir('map/'); while ($file = readdir($Handle)) { if (substr($file,

RE: [PHP] Removing files from a directory

2001-08-23 Thread Niklas Lampén
-General Subject: [PHP] Removing files from a directory I'm trying to remove files from a directory. I have this code to do it: This code is in a included file located at '/map/'. File including this code is located at '/'. Files to be removed are located at '/map/'. $Handle = opendir('map