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 Link to comment https://forums.phpfreaks.com/topic/20672-php-cli-com-port/ 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 Link to comment https://forums.phpfreaks.com/topic/20672-php-cli-com-port/#findComment-91422 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 Link to comment https://forums.phpfreaks.com/topic/20672-php-cli-com-port/#findComment-91439 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.