Print to Zebra printer in php

前端 未结 5 1755
没有蜡笔的小新
没有蜡笔的小新 2020-12-29 00:15

Looking for the proper code to print from php web page to a zebra IP printer using RAW port 9100. Does anyone know if this is possible? I need to send a string in ZPL format

5条回答
  •  别那么骄傲
    2020-12-29 00:58

    After hours of searchings I get the solutions :

    After you install the printer on the needed IP:enter image description here

    exec('lp -d printer file');
    

    In my case the command was:

    exec('lp -d Epson-Cofetarie /home/clara/Desktop/txt.txt');
    

    Where: printer = Epson-Cofetarie

    file = /home/clara/Desktop/txt.txt

    file need Apsolute path

提交回复
热议问题