is_writable problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • anguz
    Member
    • Mar 2004
    • 47

    #1

    is_writable problem

    I have a script that checks an attachments dir for is_writable before moving the uploaded file to it, but it's returning false. The dir is 755 and I believe it should be enough to work. Is this a problem with phpsuexec or the way that function works?
  • sdjl
    Senior Member
    • Mar 2004
    • 502

    #2
    I just tested on a directory of mine set to 755 with the following code and it worked fine.
    PHP Code:
    <?php

    if(is_writable('/home/username/public_html/directory') == true) {
        echo 
    'Writable';
    } else {
        echo 
    'Not Writable';    
    }

    ?>
    David
    -----
    Do you fear the obsolescence of the metanarrative apparatus of legitimation?

    Comment

    • anguz
      Member
      • Mar 2004
      • 47

      #3
      Thanks.

      I'll look for the problem in the script then.

      Comment

      Working...