Saturday, July 11, 2015

How to Use PHP with a Thermal Printer


Connect your thermal printer to your computer. Make sure all cables are tightly connected to your computer ports before setting up your printer in PHP.
Install all of the necessary drivers for your printer if it is not plug-and-play. Some newer operating systems, such as Windows Vista and Windows 7, should automatically install it for you, but always be ready to do it manually if that doesn't happen. Consult your printer's manual for instructions on how to install drivers.
Use the following code to install and use your thermal printer in PHP:
This code establishes the connection with the receipt printer through PRN, writes to the receipt printer through the file handle, and then disconnects the printer after printing your document.

1 comment:

  1. All the information in this blog is really value able. Thanks for this. www.officejetprinters or call on Tel:+1(800)6738163

    ReplyDelete