title: Warning: mkdir(): Permission denied
body: <p>I am trying to make a directory when a new account is created.<br /> 
  The directory should be in my images folder and is used to better separate uploaded images.</p>
  
  <pre><code>//get the ID of the new account that was just created/inserted
  $accountID = mysqli_insert_id($dbc);
  
  //create a new directory path for that account
  $directoryPath =  "../images/" . $accountID;
  
  // check if the directory exists
  if (!is_dir($directoryPath)) {
      //create the directory
      mkdir($directoryPath, 0777);         //breaking here
  }      
  </code></pre>
  
  <p>I had no problem getting this to work a few days ago, however when testing it today I am having problems. </p>
  
  <p>I have included <code>ini_set('display_errors', 'On');</code> in my page to see what error I am being thrown and it is a permission error. </p>
  
  <p><code>Warning: mkdir(): Permission denied</code></p>
  
  <p>The images folder has full read/write permissions for all users and groups as well as any parent folders so I don't understand how that would be an issue, that and it had worked several times before.</p>
  
  <p>I am working on windows if that matters.</p>
  
  <p>Any ideas?</p>