Well, I'm writing a file deletion script, which will delete files in a different directory (../uploads/), using the following code: delete.php?f=file.ext
Here's the code:
http://pastebin.com/m37ba5e1
It gives several errors:
Warning: opendir(BASE_DIR) [function.opendir]: failed to open dir: No error in D:\xampp\htdocs\file\administration\delete.php on line 15
Warning: readdir(): supplied argument is not a valid Directory resource in D:\xampp\htdocs\file\administration\delete.php on line 17
Warning: unlink() [function.unlink]: No error in D:\xampp\htdocs\file\administration\delete.php on line 38
Any clues? I have tried several things....and none work 🙁