Posted by Jon on 12/21/05 17:16
All,
I'm trying to use the unlink function to delete a file from the server, and
am running into issues. Basically, I want to know how I can delete files
from a directory the file is NOT in. For example - I have a form in
"/application/", and I want to delete a file in "../filesToDelete/" when the
form is activated.
I tried using a function sitting on an include file in the
"../filesToDelete/" directory and calling the function from "/application/",
but it says the file cannot be found. I'm able to delete the file if I run
the unlink function from the "../filesToDelete/" directory.
Any help?
[Back to original message]
|