Jump to content


Photo

send message to com1


  • Please log in to reply
No replies to this topic

#1 dkmarsh99

dkmarsh99

    Newbie

  • New Members
  • Pip
  • 2 posts

Posted 30 March 2013 - 05:22 AM

Hi,

 

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






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime

AlphaBit.com