title: PHP create directory with 777 permission in Windows
body: <p>I have read this:-
  <a href="https://stackoverflow.com/questions/3997641/why-cant-php-create-a-directory-with-777-permissions">Why can&#39;t PHP create a directory with 777 permissions?</a></p>
  
  <p>and I can see a new folder being created by applying the following:-</p>
  
  <pre><code>// Desired folder structure
  $structure = "../../../".$flash_dir."HELLO";
  
  // To create the nested structure, the $recursive parameter 
  // to mkdir() must be specified.
  
      $oldmask = umask(0);
      mkdir($structure, 0777);
      umask($oldmask);
  </code></pre>
  
  <p>when viewing the file permission of HELLO with DreamWeaver, it is 777. However, I suspect it is a Linux 0777 rather than a Windows 777, therefore I still cannot upload things to HELLO.</p>
  
  <p>Will there be any alternative method to create a directory with windows 777? Thanks!</p>
  
  <p>PS. when I manual create a new directory and right click it to set 777, it works perfectly, so I really think it's related to Linux vs Windows~</p>