PHP to Zebra Printer

前端 未结 8 1440
一向
一向 2020-12-13 22:27

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.

This is th

8条回答
  •  孤城傲影
    2020-12-13 22:39

    Later?...

    If you have access to the serial port:

    LINUX:

    
     $fpi = fopen('/dev/ttyS0', 'r+');
    
    
    $comando = "
    N
    Q70
    A40,20,0,2,1,0,N,\"xxx\"
    B40,40,0,1,2,6,100,N,\"$don\"
    A40,145,0,3,1,0,N,\"N.- $don \"
    A40,165,0,2,1,0,N,\"ccc\"
    A0,198,7,1,1,0,N,\"$fecha\"
    A19,198,7,1,1,0,N,\"fasdfas\"
    P
    ";
    fwrite($fpi, $comando);
    
    fclose($fpi);
    
    
    
    • THIS WORK FINE

提交回复
热议问题