Eiolon Posted August 1, 2012 Share Posted August 1, 2012 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 https://forums.phpfreaks.com/topic/266556-send-print-job-to-point-of-sale-receipt-printer/ Share on other sites More sharing options...
Christian F. Posted August 1, 2012 Share Posted August 1, 2012 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 https://forums.phpfreaks.com/topic/266556-send-print-job-to-point-of-sale-receipt-printer/#findComment-1366031 Share on other sites More sharing options...
hakimserwa Posted August 1, 2012 Share Posted August 1, 2012 check this http://www.php.net/manual/en/function.printer-write.php and http://downloads.php.net/pierre Link to comment https://forums.phpfreaks.com/topic/266556-send-print-job-to-point-of-sale-receipt-printer/#findComment-1366033 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.