why file_put_contents show dialog save file?
<p>Using the following code I'm saving a <code>.csv</code> file on the server</p>

<pre><code>foreach($list as $item)
{ 
    $csv .= join("\t", $item) . "\r\n"; 
}  

$csv = chr(255).chr(254).mb_convert_encoding($csv,"UTF-16LE","UTF-8");
header("Content-type: application/x-msdownload");
header("Content-disposition: csv; filename=CSV_".date("YmdHis").".csv; size=".strlen($csv));
$filename='CSV_'.$dateTimeNow.".csv";
file_put_contents($filename, $csv); // Create temp file
</code></pre>

<p>The <code>.csv</code> is successfully saved but the client is still receiving a download dialogue. How can I stop the download dialogue from showing?</p>
