Re: [PHP] How to determine if file is writable and deletable

2008-05-07 Thread Richard Heyes
It won't work? No idea, it was just a rather poor play on words. -- Richard Heyes ++ | Access SSH with a Windows mapped drive | |http://www.phpguru.org/sftpdrive| ++ -- PHP General Mailing List (http://www

Re: [PHP] How to determine if file is writable and deletable

2008-05-07 Thread tedd
At 9:18 PM +0100 5/7/08, Richard Heyes wrote: Perhaps touch might help. Touch my ass. ROFLMAO (I've been waiting for years to use that one) It won't work? Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://w

Re: [PHP] How to determine if file is writable and deletable

2008-05-07 Thread Richard Heyes
Perhaps touch might help. Touch my ass. ROFLMAO (I've been waiting for years to use that one) -- Richard Heyes ++ | Access SSH with a Windows mapped drive | |http://www.phpguru.org/sftpdrive| ++ -- PHP G

Re: [PHP] How to determine if file is writable and deletable

2008-05-07 Thread tedd
At 11:16 AM -0400 5/7/08, Al 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. is_writable() seems to virtually useless in most cases. It doesn't take into account the directory o

Re: [PHP] How to determine if file is writable and deletable

2008-05-07 Thread robinv
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

Re: [PHP] How to determine if file is writable and deletable

2008-05-07 Thread Al
You are missing the point of my question. I don't have a problem reading the permissions. They do not solely determine whether a file can be deleted. Aschwin Wesselius wrote: Al wrote: I need to determine if a file is truly deletable by a php script, Deleting permissions seem to be the same as

Re: [PHP] How to determine if file is writable and deletable

2008-05-07 Thread Aschwin Wesselius
Al 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. is_writable() seems to virtually useless in most cases. It doesn't take into account the directory ownership/permissions; whic