I am saving something in doc but it adds html to it
<?
header("Content-type: application/vnd.ms-word");
header("Content-Disposition: attachment;Filename=document_name.doc");
echo 'hi';
?>
and it shows hi in doc file but then the complete html of the page. What am I doing wrong
this did it