Application - Web. Generates checks on the server. The task is to send a document to print from the application using PHP, poisoning the document to a shared printer - IP: port.
You should not write answers about what to print using JAVA. This particular question interests you!
Seen working examples. It is impossible to implement something like this. Coping in the direction of the PECL extension for PHP - printer. Printer functions are described in the PHP documentation.
But at the office. PECL does not have this extension for download. Those that found on the Internet can not be installed on the home server. (PHP 5.3.3, Win 7 axis). On the working application Centos 6.6 is used.