[thelist] How do I delete uploaded files in PHP?
Nan Harbison
nan at nanharbison.com
Mon Nov 12 18:10:21 CST 2007
Anthony,
The file->perm is 0444, and the print you suggested to print out had two //
's in it --- resumes//file_to_delete.txt.
So that was the problem!
I finally got the unlink function to work. Wow, did I waste a lot of time on
that. If it didn't work soon, I was going to use your second suggestion, to
overwrite the file.
Thanks for all your help!
Nan
-----Original Message-----
From: thelist-bounces at lists.evolt.org
[mailto:thelist-bounces at lists.evolt.org] On Behalf Of Anthony Baratta
Sent: Monday, November 12, 2007 4:32 PM
To: thelist at lists.evolt.org
Subject: Re: [thelist] How do I delete uploaded files in PHP?
Two quick questions:
What are the permissions being set or defaulted to when the file is moved to
it's final destination by the code example below?
e.g. what is the value of: $this->file_perm
And if you "print file_exists($full_destination_path_and_name_to_remove);"
What do you get?
-----Original message-----
From: "Nan Harbison" nan at nanharbison.com
Date: Mon, 12 Nov 2007 13:20:09 -0800
To: "'Anthony Baratta'" anthony at baratta.com, thelist at lists.evolt.org
Subject: RE: [thelist] How do I delete uploaded files in PHP?
> Anthony,
>
> I tried this ftp method as a stupid wild stab at something that might
> work, I found it on a website explaining how to delete files. Resumes
> are uploaded using PHP file upload functions, mainly using this
> function, written by Marcos Thiago <fabismt at yahoo.com.br>:
--
* * Please support the community that supports you. * *
http://evolt.org/help_support_evolt/
For unsubscribe and other options, including the Tip Harvester and archives
of thelist go to: http://lists.evolt.org Workers of the Web, evolt !
More information about the thelist
mailing list