Jump to content

send message to com1


Recommended Posts



I have some code in vba that I use to open a cash drawer. It writes a message to COM1 or LPT1 - depending on what port is specified.


I want to know how to do the same function using PHP.



                w_message = "Open Sessame"
                w_freefile = FreeFile
                Open w_strportname For Output As #w_freefile
                Print #w_freefile, w_message
                Close #w_freefile


Please help

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • 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.