title: PHP permissions denied failed to open stream
body: <p>I have this code </p>
  
  <pre><code>&lt;?php
      $handle = fopen('names.rtf','w');
      fwrite($handle, 'Alex');
  ?&gt;
  </code></pre>
  
  <blockquote>
    <p>Warning: fopen(names.rtf): failed to open stream: Permission denied in
    /Applications/XAMPP/xamppfiles/htdocs/file.php on line 3</p>
  </blockquote>
  
  <p>And when I run it in comes up with that error. I've set my permissions on the folder to read &amp; write for everyone. I'm not sure why else it would deny it.</p>
  
  <p>Im using the latest Mac OS</p>