title: Save a .csv file to desktop
body: <p>I am developing a script using PHP to
  save a file to desktop as .csv file.</p>
  
  <p>I found this code sample from PHP Manual.</p>
  
  <pre><code>&lt;?php
  $list = array (
  array('aaa', 'bbb', 'ccc', 'dddd'),
  array('123', '456', '789'),
  array('"aaa"', '"bbb"')
  );
  $fp = fopen('file.csv', 'w');
  foreach ($list as $fields) {
  fputcsv($fp, $fields);
  }
  fclose($fp);
  ?&gt;  
  </code></pre>
  
  <p>I created file.csv on my desktop.
  My issue is I cannot find the correct path 
  to open the file on the desktop and, 
  write and save.  ($fp = fopen(‘file.csv’, ‘w’))</p>
  
  <p>Should I have to show the path to server 
  where I stored my web site and 
  from there to to desk top's file.csv?</p>
  
  <p>Can somebody guide me?</p>
  
  <p>Thank you very much.</p>