PHP中的IPP

时间:2018-11-30 15:00:30

标签: php printing

我正在使用一个开放源代码Web应用程序,该应用程序涉及在访问者的详细信息输入后将其打印出来-配置IPP打印机的部分如下:

/ * BEGIN服务器端打印部分* /

$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服务器端打印部分* /

但它不会打印。...

任何人都可以帮忙...。如有需要,请开除。

谢谢。

0 个答案:

没有答案