Print to Zebra printer in php
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 formatted output direct to ZM400 label printer. I've searched high and low, the closest I've found is this: Print directly to network printer using php It seems very close to what I need, but when my php page hits that code, it doesn't do anything. Here's the code I used: <?php $handle = printer_open('\\\\192.168.2.206:9100\\'); printer_set_option($handle, PRINTER_MODE, "RAW"); printer_write($handle, "TEXT To print"); printer