title: PHP mkdir not working -- may be related to Mac localhost
body: <p>I'm trying to execute the following code in my PHP script:</p>
  
  <pre><code>if (!is_dir($path . 'channel-partners/html/intro-letter/' . $name_url)) {
        mkdir($path . 'channel-partners/html/intro-letter/' . $name_url, 0777, true);
  }
  </code></pre>
  
  <p><code>$name_url</code> is a string passed in at runtime.  I get permission when I try to do this in my Mac localhost.  I'm wondering if the issue is not my script but the way Apache is set up on my Mac.  Do I need to do something special to configure Apache to allow it to create files and make directories (the file creation is not shown here)?</p>