need help on PHP serial Program

Thread Starter


Joined Nov 24, 2011
I need help on below php program. as I know this program is use for serial communication. I want to know exactly what is real use of this program. does it configure physical port of PC? if not than What program does ?
include 'PhpSerial.php';

// Let's start the class
$serial = new PhpSerial;

// First we must specify the device. This works on both linux and windows (if
// your linux serial device is /dev/ttyS0 for COM1, etc)

// We can change the baud rate, parity, length, stop bits, flow control

// Then we need to open it

// To write into
$serial->sendMessage("Hello !");