-2
$barcode_ZPL_code ="^XA 
     ^FWR 
    ^FO 425,450^A0,20,30^FH^FD_20TITTLE_20TITLE_2DTITLE^FS
     ^FO 380,450^A0,20,30^FH^FDDATE_3A18_2D03_2D2015^FS 
    ^FO 250,450^AD^BY2 ^BC,100,Y,N,N ^MD1    
    ^FH^FDUGTTGD_2D1_282_29_2DPSHAR_2DAMP22^FS
     ^XZ";

I got the above code to print barcode but I am not being able to send this code to my Zebra TLP 2844 printer via php. So please anyone

2 Answers2

1

You can't.

The Zebra TLP 2844 only speaks EPL language, as answered here.

0

Is the printer networked and on the same LAN as the computer running the PHP code? If so, you could send via CURL and FTP to the printer's IP address. Otherwise you need to look at some alternative output method.

andyknas
  • 1,939
  • 2
  • 15
  • 29