Tenho o seguinte código: <?php
$id = fopen (time() . ".html", "w");
fwrite($id,"<html><head><title>Titulo</title></head>");
fwrite($id,"<body>");
fwrite($id,"blablabla qualquer coisa <font color='#006633'>verdinho</font><br>outra linha<p>paragrafo</p>fim");
fwrite($id,"<html><?php echo "Teste" ?><html>");
ele não interpreta como codigo php e sim como umas string qualquer. alguém já precisou usar esse tipo de recurso?
?> Com ele eu gero uma pagina html com php mas eu preciso tambem gerar paginas html com scripst em php mas se eu tento assim: fwrite($id,"</body></html>");