Using PHP to transmit/write characters to a USB port device at 9600 baud rate

Hello guys,

I am new to PHP programming. I am trying to figure out how to use PHP language to transmit/write characters to a USB port device at 9600 baud rate 8-N-1. Basically I just need the PHP coding to allow me to send stuff to the USB device but I have no idea how I can interface this. I did some researching but most were for RS-232 COM Port. I can’t find the proper one for USB.

If someone can help me out, that would be awesome. Thank you!

file_put_contents( 'X:\\file\\path\\on\\usb\\stick' );

X:\ is the drive letter for the usb drive if this is on Windows.

However, if you are expceting to work with USB directly PHP cannot do that.