Answering to my question: Yes, it's possible adapt ASP code to PHP.
<html
xmlns:o='urn:schemas-microsoft-com:office:office'
xmlns:w='urn:schemas-microsoft-com:office:word'
xmlns='http://www.w3.org/TR/REC-html40'>
<head><title>Time</title>
<xml>
<w:worddocument xmlns:w="#unknown">
<w:view>Print</w:view>
<w:zoom>90</w:zoom>
<w:donotoptimizeforbrowser />
</w:worddocument>
</xml>
<style>
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in ;
mso-header-margin:.5in;
mso-footer-margin:.5in; mso-paper-source:0;}
div.Section1
{page:Section1;}
</style>
</head>
<body lang=EN-US style='tab-interval:.5in'>
<div class="Section1">
<h1>Hello Word!</h1>
</div>
</body>
</html>
header("Content-type: application/vnd.ms-word");
header("Content-Disposition: attachment;Filename=report_".date("d_m_Y_G_i").".doc");
?>
Your editor PHP, maybe, can alert you about some unknown HTML tag . You must ignore it.
I would like to thanks at 'Anil' Radhakrishna for his contribution.