![]() |
How to send Hex 0x1A via PHP
I am trying to communicate with a modem connected to my com port via a PHP script. I got everything working except for the last command which is supposed to send 0x1A to the modem. I tried a few variations including:
Code:
ser_write(hexdec("0x1A")); Hope someone can help. |
Try:
ser_write(chr(26)); |
Quote:
|
All times are GMT -7. The time now is 12:37 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123