Posted by Peter Jay Salzman on 11/05/61 11:31
Justin Koivisto <justin@koivi.com> wrote:
>
> <?php
> if( (file_exists($filename)
> && is_writable($filename))
> ||
> (file_exists(dirname($filename))
> && is_writable(dirname($filename)))
> ){
> // can create or overwrite file
> }else{
> // cannot create or overwrite file
> // directory may not exist, directory may
> // now allow write permission, or the file
> // exists and does not allow write permission
> }
> ?>
Doh! How embarrassing! But thanks! :)
Pete
Navigation:
[Reply to this message]
|