title: Using PHP's fopen in windows on a network drive
body: <p>I have the following code:</p>
  
  <pre><code>$file_name = "1234";
  $filename = "L:\\videoette_converter\\batch_files\\".$file_name.'.bat';
  if (!$handle = fopen($filename, 'a')) {
       echo "Cannot open file ($filename)";
       exit;
  }
  </code></pre>
  
  <p>I get the following error from that code: </p>
  
  <blockquote>
    <p>Warning: fopen(L:\videoette_converter\batch_files\1234.bat)
    [function.fopen]: failed to open stream: No such file or directory in
    C:\wamp\www\videoette_converter\index.php on line 47</p>
  </blockquote>
  
  <p>and the debug line from my php</p>
  
  <blockquote>
    <p>Cannot open file (L:\videoette_converter\batch_files\1234.bat)</p>
  </blockquote>
  
  <p>However the folder <code>L:\videoette_converter\batch_files</code> does exist as a mapped drive, and I have given "Everyone" full permissions. What could be the problem?</p>