I am using phpPrint for printable pages on my website. However, I want to add a graphic to the top of the printable page. Anyone know what code I could add to accomplish this?
Here is the code for phpPrint:
//Do you want to strip images from the printable output?
// If no, change to "no". Otherwise, images are stripped by default.
$stripImages = "no";
// If you've already tested, you can remove the text from here up to the other: 8< ---->
// That's it! No need to go below here. Upload it and test.
$startingpoint = "<!-- startprint -->";
$endingpoint = "<!-- stopprint -->";
$read = fopen($HTTP_REFERER, "rb");
$value = "";
while(!feof($read)){
$value .= fread($read, 4096);
}
fclose($read);
$start= strpos($value, "$startingpoint");
$finish= strpos($value, "$endingpoint");
$length= $finish-$start;
$value=substr($value, $start, $length);
function i_denude($variable)
{
return(eregi_replace("<img src=[^>]*>", "", $variable));
}
function i_denudef($variable)
{
return(eregi_replace("<font[^>]*>", "", $variable));
}
$PHPrint = ("$value");
if ($stripImages == "yes") {
$PHPrint = i_denude("$PHPrint");
}
$PHPrint = i_denudef("$PHPrint");
$PHPrint = str_replace( "</font>", "", $PHPrint );
//
echo $PHPrint;
?>