Welcome aboard! We are happy you are here and wish you good net-raft!
<?php
header("Content-type: application/vnd.ms-word");
header("Content-Disposition: attachment;Filename=myword.doc");
echo "<html>";
echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=Windows-1252\">";
echo "<body>";
echo "<b style='color: red;'>My word document</b>";
echo "<table>
<tr>
<th></th>
<th>Technology</th>
<th>Side</th>
</tr>
<tr>
<td>1</td>
<td>javscript</td>
<td>client</td>
</tr>
<tr>
<td>2</td>
<td>php</td>
<td>server</td>
</tr>
<tr>
<td>3</td>
<td>C#</td>
<td>server</td>
</tr>
</table>";
echo "</body>";
echo "</html>";
?>
The most helpful PHP solutions
detect browser phpPHP Click to see more ... 4.6K 408