On 07/05/2008, Al <[email protected]> wrote:
> I need to determine if a file is truly deletable by a php script, Deleting
> permissions seem to be
> the same as writing, they probably have the same criteria.
You're not writing to the file, you're unlinking it from the
containing directory, so it's the directory's permissions that matter,
not the file's.
All you really need to do is check that the directory is_writable()
is_writable(dirname($filename));
-robin
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.