Why is directory with permissions 777 not writable?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • guillermobytes
    New Member
    • Jan 2010
    • 77

    Why is directory with permissions 777 not writable?

    hi there,

    i'm having a problem with a directory under unix (Mac OS X).
    I would like to use
    Code:
    file_put_contents($dir, file_get_contents(...));
    the problem is that the destination directory $dir is not writable.
    ok, so what i did is to chmod 777 $dir.
    so now file permissions are :
    Code:
    ls -l /Users/gui/Desktop/images
    output
    Code:
    drwxrwxrwx  2 gui  staff       68 Nov 20 01:23 images
    and when in php i ask :
    Code:
    $dir = "/Users/gui/Desktop/images";
    is_writable($dir); // false
    i cant understand why it is not writable..

    is that even possible??

    thanks for your help!
    regards
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    run it again and use clearstatcache( ) beforehand, does that still give false?

    Comment

    • guillermobytes
      New Member
      • Jan 2010
      • 77

      #3
      thanks Dormilich for your help, but still...
      Code:
      is_writable() // false
      i have a problem with my harddrive and filesystem is corrupted, maybe that is why it does not work.
      I'll try to fix the filesystem corruption and then run it again.

      regards

      Comment

      Working...