Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 12th, 2012  |  syntax: None  |  size: 0.18 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Check creation of new file/folder is allowed in client server using PHP code
  2. if(is_writable('/path/to/your/dir/'))
  3. {
  4.  
  5. }
  6.        
  7. echo substr(sprintf('%o', fileperms('/directory')), -4);