无法使用 php 将热敏打印机连接到网络主机

时间:2021-02-22 14:13:03

标签: php thermal-printer

我正在使用热敏打印机使用 https://github.com/mike42/escpos-php 库自动打印收据,它在本地主机上运行良好,但是当我尝试通过 Hostgator 在网络主机上使用打印功能时,它给了我一个错误消息:

$ istioctl version fclient version: 1.9.0 control plane version: 1.9.0 data plane version: 1.9.0 (5 proxies)

这是我的代码

$ kubectl version
Client Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.3", GitCommit:"1e11e4a2108024935ecfcb2912226cedeafd99df", GitTreeState:"clean", BuildDate:"2020-10-14T12:50:19Z", GoVersion:"go1.15.2", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.2", GitCommit:"f5743093fd1c663cb0cbc89748f730662345d44d", GitTreeState:"clean", BuildDate:"2020-09-16T13:32:58Z", GoVersion:"go1.15", Compiler:"gc", Platform:"linux/amd64"} 

我试过用网络打印还是不行,我想知道我做错了什么,或者有没有其他方法可以在没有打印对话框的情况下自动打印收据

0 个答案:

没有答案