i want to display barcode with epson tm-t82 thermal printer.im using php to create receipt.
but until now it has always failed.
below is the php script that I use to print the contents of the receipt details.
<?php
$mprint .= chr(27).chr(97).chr(49); // align center
$mprint .= "Proof of Handover of Dirty Linen\r\n";
$mprint .= " \r\n";
$mprint .= "Thank You\r\n";
$mprint .= chr(27).chr(100).chr(5); // enter 5 lines
exec('echo "'.$mprint.'" > /tmp/linenshrmstruk.tmpctk');
exec('lpr -H 127.0.0.0' -P printername -l /tmp/linenshrmstruk.tmpctk');
?>
what I want is, to show the barcode at the end of the line before print it out.but I still didn't find exactly how to do it.It would be of great help if some one could assist me with a solution with those script above. please help.