Call to undefined function printer_open()

前端 未结 2 1191
南方客
南方客 2020-12-21 01:45

I am trying to connect to my printer which is on another machine through this code

     $handle = printer_open(\"\\\\\\\\xxx.xxx.xxx.xxx\\\\Canon MF4320-4350         


        
2条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-21 01:51

    I have a similar problem. This is what I have figured out so far.

    1. Make sure that you have a php_printer.dll matching your php compile version in your extension folder ( php/ext/ ). Use this link for downloading the file.

    2. add the following in your php.ini file:

      printer.default_printer=PHP_INI_ALL
      extension=php_printer.dll
      

    The errors have disappeared but the file is still not printing.

提交回复
热议问题