Hi Anderson
I don't know if I understand your question, but I guess you want to optimize a php-generated HTML file for printing?
You can do that by putting a link to the printer-optimized page on your original screen page. If the original page is called index.php you can make a link to the same page with a query string which you append to the link:
<a href='index.php?mode=print'>Printable</a>
You can then use the variable $mode in your script to optimize output:
<?php
if (!$mode=='print') echo $header;
?>
blablabla
<?php
if (!$mode=='print') echo $footer;
?>
Hope it is what you need...
Christoph