Search code examples
phptsr

running PHP as a service that listen to serial ports


(how) Can I execute a PHP code, that will stay a live and listen to a serial port?

Currently I use python and other stand-alone environments.

Please note: my problem is not reading the port, but keeping the connection a live


Solution

  • I only read about it a long time ago, but this should do what you want to: http://pecl.php.net/package/dio