How To Download File TO Desired FOLDER/Path?
<p>I am having a problem with how to download the file into our desired folder, this below is my code for download.php</p>

<pre><code>header('Content-Description: File Transfer');
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename='.basename($fileName));
header('Content-Transfer-Encoding: binary');
header('Expires: 0');
header ("Cache-Control: must-revalidate");
header('Pragma: public');
ob_clean();
flush();
readfile($data);
echo $data;
exit;
</code></pre>

<p>I want to download the file to my desired folder like C:\Users\Asus or D:\Program not to the default one
$data is the content of the file and $filename already include the extension Ex:picture.jpg</p>

<p>Thx before for all the help that i can get :)</p>

<p>Henry</p>
