This is not exactly what you've asked for, but perhaps you're able to use
it anyway. It is the PHP script I use to create a print-friendly page:
Everything between <!-- Start Print Version --> and <!-- End Print Version
--> will be part of the new page..



<?php

$stripImages = "no";

$startingpoint = "<!-- Start Print Version -->";
$endingpoint = "<!-- End Print Version -->";

error_reporting(0);

$read = fopen($HTTP_REFERER, "r") or die;

error_reporting(1);

$value = "";
while(!feof($read))
        {
        $value .= fread($read, 10000);
        }
        
fclose($read);
$start= strpos($value, "$startingpoint");
$finish= strpos($value, "$endingpoint");
$length= $finish-$start;
$value=substr($value, $start, $length);

$PHPrint = ("$value");

$PHPrint = stripslashes("$PHPrint");

echo "<style type=text/css><!-- td {font-face:arial; font size:12px; color:#000000}
a{color:#000000}--></style>";
echo "<table border=0 width=60%><tr><td>";
echo "<font face=arial size=2>";
echo $PHPrint;
echo "</td><tr></table>";
flush ();
?>


>-- Oorspronkelijk bericht --
>Date: Tue, 1 Jul 2003 18:30:54 +0700 (WIT)
>From: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: [PHP] php - printer button
>
>
>
Dear all,

I have research about library automation engine in my library.
developing on PHP + MySQL
We need to develop printer utility at some module to get print out 
transaction.

Can I do this utility using SUBMIT BUTTON under HTML & PHP?

>ow to make the php printer script? 
help... please & thanks

Regard,
Nasar




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



+++++++++++++++++++++++++++++++++++
N    Dore van Hoorn
S    s1000454 AlfaInformatica-RuG
E    [EMAIL PROTECTED]
W    http://www.let.rug.nl/~s1000454
+++++++++++++++++++++++++++++++++++


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to