Cayenne Posted September 13, 2006 Share Posted September 13, 2006 Can php cli access to COM port and listen it for signals ? If yes, what must i use for it ? OS: UNIX Quote Link to comment Share on other sites More sharing options...
HuggieBear Posted September 13, 2006 Share Posted September 13, 2006 I'm not sure, it can listen to TCP/UDP ports using sockets, as for physical COM ports, I'm not sure. What did Google say ???RegardsRich Quote Link to comment Share on other sites More sharing options...
Destruction Posted September 13, 2006 Share Posted September 13, 2006 I've seen the following on the php.net site in a post about a bug that has since been fixed I believe. This may be the way to access the COM ports...[code]<?php$serial_port = fopen("COM4", "r+");echo(fread($serial_port, 8192));?>[/code]Hope this helps,Dest Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.