Я использую веб-приложение с открытым исходным кодом, которое включает в себя печать значка идентификатора посетителя после того, как они ввели свои данные - раздел для настройки принтера 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 Раздел печати на стороне сервера * /
Но он не печатает ....
Может кто-нибудь помочь ....Ответьте на вопросы, если потребуется ....
спасибо.