Heres something quick and dirty it is only text, if you want to go fancy you
have to access some other API's I have tested this so I know this section
works. If you need something more elegant you can create a PDF file with the
PDF library then print that.
Good luck
Have fun
Len
---Start of Code
//open file needed to be created
$myfile = fopen("/tmp/$session_ident.dat", "w");
//initialize variable to hold file contents
$filecontents = 'RGAJMA11031998
BANNER '.$session_ident.' Server Job: '.$dateformat.'
PRINTER \\\\'.$data[3].'\\'.$data[4].'
';
//place content into file
fputs($myfile, $filecontents);
for ($n=0; $n < count($numtoprint); $n++){
$forminfo .= "$formname[$n] $numtoprint[$n]\n";
}
fputs($myfile, $forminfo);
//close file
fclose($myfile);
//print file created
//printing to system
//using backticks
echo `lpr -P lj4000 /tmp/$session_ident.dat`;
-- End of Code --
You get the idea. Write back and tell us how it went
Subject: RE: s there faster way to print other than the browser print-
button for a- php web aplication??
From: Jorge Cordero
<jorge@d...>
Date: Mon, 02 Apr 2001 19:28:15 -0600
X-Message-Number: 3
Leonard
iam on linux and apache
can you give some code to study?? this??
thanks Jorge