php - How to send the content of an external file to printer? -
i want print (printer, not screen) content of file via php script.
how do this?
update
php cannot access hardware. not considered "possible."
see:
however, first link shows, done javascript. can output javascript in way similar methods shown on first link force browser show print dialog box.
original
you can use file_get_contents print files variable or output stream.
$filecontents = file_get_contents("myfilename.txt"); print $filecontents; you can include files php interpretation.
Comments
Post a Comment