New line formatting when using HTML file as Word file?
问题 I'm writing a PHP application for a client that needs a pre-existing HTML page I've already created to be "exported" as an Word file. Simply, this is how it's done: if (isset($_GET["word"])) { header("Content-type: application/vnd.ms-word"); header("Content-Disposition: attachment;Filename=some_file.doc"); } This, of course, will be called if a "word" flag is located in the page querystring, e.g.: whateverpage.php?somequery=string&someother=test& word Anyways, my question is, despite how