printing - Print to Zebra printer in php -



printing - Print to Zebra printer in php -

looking proper code print php web page zebra ip printer using raw port 9100. know if possible? need send string in zpl formatted output direct zm400 label printer. i've searched high , low, closest i've found this: print straight network printer using php

it seems close need, when php page hits code, doesn't anything. here's code used:

<?php $handle = printer_open('\\\\192.168.2.206:9100\\'); printer_set_option($handle, printer_mode, "raw"); printer_write($handle, "text print"); printer_close($handle); ?>

if you're looking send zpl printer, don't need dedicated printing library. need open socket printer , send zpl directly. more of general php socket-communication question opposed printer-specific question.

if server hosting web app , printers on same network, able open socket , send zpl. if, however, printers , web app server on different networks, not able print on sockets, on model printer, without additional browser plugins or add-ons. speaking, accessing remote printer (or device) via web-site security risk.

php printing network-printers

Comments

Popular posts from this blog

javascript - mongodb won't find my schema method in nested container -

How do you set up a perforce server to work over the internet? -

ios - Lagging ScrollView with UIWebview inside -