PHP到Zebra打印机 [英] PHP to Zebra Printer

查看:76
本文介绍了PHP到Zebra打印机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将此Zebra ZM400打印机连接到网络(192.168.1.50).而且我正在尝试直接从PHP将内容推送到此打印机.

I have this Zebra ZM400 Printer connected to the network (192.168.1.50). And I am trying to push a content to this printer directly from PHP.

这是个主意,我只是束手无策.我尝试了file_put_contents('192.168.1.50', $content),但没有成功.

This is the idea and I am just stuck without any way to do this. I tried the file_put_contents('192.168.1.50', $content) but with no success.

如果有人可以帮助我解决这个问题,将不胜感激.谢谢:-)

Would appreciate if anyone could please help me in sorting out this. Thank you :-)

............................................... ................................................... ................................

.................................................................................................................................

我使用LPR协议打印.无需安装驱动程序或任何东西.可以从此处下载用于PHP 5的LPR打印类:

I printed using the LPR Protocol. No need to install driver or anything. The LPR Printing Class for PHP 5 can be downloaded from here:

http://www.phpclasses.org/package/2540-PHP-Abstraction-for-printing-documents.html

推荐答案

我敢肯定,仅通过套接字推送文本内容将根本无法工作.

I'm pretty sure just pushing text content over a socket will not work at all.

您的猜测是您需要在lpr上打印.安装诸如CUPS之类的打印服务器,您可以使用它来发送它...

You will need to print over lpr is my guess. Install a print server like CUPS and you can send it using that...

这篇关于PHP到Zebra打印机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆