note 71771 deleted from function.printer-open by sobak
| From: | sobak@php.net | Date: | Thu, 24 Nov 2016 20:31:34 +0000 |
| Subject: | note 71771 deleted from function.printer-open by sobak | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-207575@lists.php.net to get a copy of this message | ||
Note Submitter: knightcon at bluebottle dot com
----
If you are desperate to do server-side printing with PHP on a *nix machine then you can always use
the fsockopen() function and send a pre-build PJL (Printer Job Language) string directly to the
printer. As long as your printer supports PJL then there should be no problem. Just also bare in
mind that unless you are doing something very special, like sending the print job to a remote
printer and not the printer the client is at you should just make a report page generated by php and
apply a css stylesheet which makes the page styled for printing.