Save Export CSV to desired location - PHP
<p>I have a code like this.</p>

<pre><code>header("Content-type: application/vnd.ms-excel");
header("Content-Disposition: attachment; filename=\"$filename\"");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0,pre-check=0");
header("Pragma: public");
</code></pre>

<p>Now, this gets saved in my desktop. If i wish to save the xls file in D:/xls/
then how to add the code.
Please help me.</p>

<p>Thanks -
Haan</p>
