title: Permission issue with PHP on Windows share
body: <p>Here's my setup. I've got a linux box running Apache and PHP. I have a folder mounted on my linux box that points to a directory on my windows server where my HTML files are stored. My virtualhosts file points to the mounted folder, so Apache is getting the files from the Windows share.</p>
  
  <p>I'm having some issues with fopen. When I run this:</p>
  
  <pre><code>&lt;?php
  
      echo 'cwd is: ', getcwd(), "&lt;br /&gt;\n";
      echo 'target should be: ', getcwd(), "/data.txt &lt;br /&gt;\n";
      echo 'file already exists: ', file_exists('data.txt') ? 'yes':'no', "&lt;br /&gt;\n";
  
      $file = fopen("data.txt", "a");
      if ( !$file ) {
        die('fopen failed');
      }
      $c = fwrite($file, "\n$name,$lastname,$email");
      fclose($file);
      echo $c, ' bytes written';
  ?&gt;
  </code></pre>
  
  <p>I get the following back:</p>
  
  <blockquote>
    <p>cwd is: /home/brian/website/googlecalendar/html<br>
    target should be: /home/brian/website/googlecalendar/html/data.txt<br>
    file already exists: no<br>
    Warning: fopen(data.txt): failed to open stream: Permission denied in /home/brian/website/googlecalendar/html/testfopen.php on line 7 fopen failed  </p>
  </blockquote>
  
  <p>On Windows, I've checked the permissions on the "html" folder, and everything is set to allow everyone to write. I'm not sure what else I need to change. It should work, right?</p>