Jump to content

Send print job to point of sale receipt printer


Eiolon

Recommended Posts

I now PHP is server side but I am not sure if there is some way to interface with hardware in some manner.

 

Basically, I have an event registration page.  I would like the info that was registered to be sent to a receipt printer (such as a Star TSP series) as soon as the button is clicked to register.

 

Even Name

Date & Time

Customer Name

 

Currently, we get to a confirmation page in the web browser, and that is printed on 8.5x11 paper.  As you can image, it is quite a waste.  It would also like to stop having to go to FILE > PRINT.  I just want it to be instant.

 

I can't print that confirmation page on the receipt printer because the browsers header/footer makes it 11 inches long for 3 lines.

 

So any ideas on how to send directly to the receipt printer after submitting registration?

Link to comment
Share on other sites

You'll first want to read this:

http://php.net/manual/en/function.printer-open.php

 

If that doesn't help, you'll need to look at the documentation for the printer driver, and see if you can find the syntax of the protocol it uses. Also, the PHP manual should be able to help you figure out how to connect to the printer, depending upon which type of connection it uses.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.