title: fopen - failed to open stream: Permission denied
body: <p>Is it possible to write data to <code>CSV</code> while the file is opened from desktop? Because I am trying to write some input data to <code>CSV</code> when user submit the form, but I am getting above error when the file is opened from my desktop. My system will only write to csv when I close the file.</p>
  
  <p>Error when meeting the line <code>$fp = fopen("C:\Users\lenovo\Desktop\sample.csv", "w");</code></p>