- A standard receipt printer such as the Epson TM-T88III receipt printer uses the parallel port.
- To print to the parallel-port receipt printer, you print through port PRN (exactly the same as printing from DOS prompt).
- From within PHP-GTK2, you need to first establish the connection with the printer by using $handle = fopen("PRN", "w");
- Thereafter, to print anything to the printer, you just "write" to it like the file handle: fwrite($handle, 'text to printer');
- There are newer receipt printer that uses USB. I believe you should be able to print to such printers through PRN too.
0 komentar:
Posting Komentar