PHP create doc file php June 5, 2012 Pramod T P <?php header(“Content-type: application/vnd.ms-word”); header(“Content-Disposition: attachment;Filename=test.doc”); echo “phpcodez”; ?>