Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
(如何)我可以执行一个 PHP 代码,它将保持活动状态并监听串行端口?
目前我使用python和其他独立环境。
请注意:我的问题不是读取端口,而是保持连接有效
我很久以前才读过它,但这应该做你想做的事:http: //pecl.php.net/package/dio