Hello! I dump the database and want to give it out right away to download the file. On the server, the file is saved perfectly, all as it should. But at the download I get a file that starts with the html code of the page from which I am downloading, and after this code is already a dump. Help me figure out where this code comes from. Here is the file issue code:
if ($stream) { header('Content-Disposition: attachment; filename='.$dump_name.$ofdot); if($gzip) header('Content-type: application/x-gzip'); else header('Content-type: text/plain'); header("Expires: 0"); header("Cache-Control: must-revalidate, post-check=0,pre-check=0"); header("Pragma: public"); echo $data; }