Hi, I wonder if it is possible to get php to interact with a networked barcode printer using the ZPL barcode language. Has anyone ever tried this? Does someone have any info / tutorials / or anything else?
The PHP Printer Interface is Windows-only, but anyway, you can output ZPL to the browser or to a file and then print it. Or write it directly to the printer with linux. An example to print a label for a cookbook on lp0 with linux: $labelcode =<<<AAA ^XA ^LH0,0 ^FO40,100^FH\^A0N,50,40^FDCookbook II^FS ^FO40,150^CI7^FH\^A0N,30,30^FDFrom Alice Cooker^FS ^FO40,180^BY3,2^BCN,150,N,N^FD1234567890ABC^FS ^PQ1 ^XZ AAA; file_put_contents('/dev/lp0',$label); Code (markup): Btw. if you need zebra printer(s) drop me a line.
We already have one thanks though. Basically I need to be able to print barcodes from the custom written web based application. I have a windows and a linux server available. This needs to be done from different computers on a networked printer without that browser print dialog. What would be the best way to do it?