We have built our Inventory POS system in PHP so that we can centralize our data, and use the browser at the client machines to interface with it.
I have been trying to find an answer for a number of months and can not find anything.
Issue: We have a Receipt Printer with a Cashdrawer attached and would like to open the cashdrawer if a no sale or cash is used in the transaction. We have a sequence of Escape codes that need to be sent to the printer but can not figure out how to get those to send to the the printer with the desired effect, where it appears it will only print instead. The printer is set to default and a window is opened with the information that needs to be printed.
Is there a solution for this?
Printing or sending escape codes from a browser?
Moderator: General Moderators
- Ambush Commander
- DevNet Master
- Posts: 3698
- Joined: Mon Oct 25, 2004 9:29 pm
- Location: New Jersey, US
Re: Printing or sending escape codes from a browser?
If there is a command line interface to the printer, you can have PHP send it using a shell_exec().