IPP из PHP - PullRequest
       20

IPP из PHP

0 голосов
/ 30 ноября 2018

Я использую веб-приложение с открытым исходным кодом, которое включает в себя печать значка идентификатора посетителя после того, как они ввели свои данные - раздел для настройки принтера IPP выглядит следующим образом:

/ * НАЧАЛО печати на стороне серверараздел * /

$sIPPPrinterOrServerHost = 'localhost'; // The host name or the IP address of the IPP Printer or IPP Server.

$sIPPPrinterOrServerPort = '631'; // By default it is set to IANA assigned port (631).

$sIPPPrinterURI = 'ipp://localhost:631/printers/Brother/.printer'; // The URI of the IPP printer (examples : '/printers/epson', 'ipp://localhost:631/printers/epson').

$sIPPJobUserName = 'anonymous'; // Depending on the configuration of your printer, you may have to set this to 'anonymous' or a valid username on your system.

$aIPPPrinterPerClientFixedIPArray = array();

$aIPPPrinterPerClientFixedIPArray['localhost'] = array();

$aIPPPrinterPerClientFixedIPArray['localhost']['IPPPrinterOrServerHost'] = 'localhost';

$aIPPPrinterPerClientFixedIPArray['localhost']['IPPPrinterOrServerPort'] = '631';

$aIPPPrinterPerClientFixedIPArray['localhost']['IPPPrinterURI'] = 'ipp://localhost:631/printers/Brother/.printer';

/ * END Раздел печати на стороне сервера * /

Но он не печатает ....

Может кто-нибудь помочь ....Ответьте на вопросы, если потребуется ....

спасибо.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...