|
Posted by Jon on 12/21/05 18:02
ok, it was stupid easy. I just concatenated the directory onto the file name
into a separate variable, and ran unlink on that. Thanks for those that read
this before I figured it out :p
"Jon" <jonra@netins.com> wrote in message
news:dobrkj$pq2$1@news.netins.net...
> 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?
>
Navigation:
[Reply to this message]
|