PHP Serial Class for OS X
Recently a friend of mine was wanting to tinker with a serial device on his Powerbook. Since he was wanting to eventually allow device input over HTTP requests, we went off looking for a PHP class to help out. Luckily, there was a GPL-licensed PHP Serial class on phpclasses.org by Remy Sanchez. However, it only works under Linux or Windows. A few machine lock-ups later, we appeared to have it working.
Download my modified version of the PHP Serial class here.
Note: There are a few other modified-for-OSX versions of this class floating around on the interwebs, but none that I’ve seen enable all of the functions that this class offers.
Thanks for this class. Somehow I can’t get it to work and get the following error:
Fatal error: No stty availible, unable to run. in /Library/WebServer/Documents/php_serial.class.php on line 71
Running stty on the terminal shows me: stty speed 9600 baud; lflags: echoe echoke echoctl pendin iflags: iutf8 oflags: –oxtabs cflags: cs8 –parenb
Did you ever run into something similar?!