This is the code i have written to read from a serial port ... i know the serial cable and everything works since i have two serial monitors communicating back and forth between the two computer and i am able to send from this computer to the other one .. any help is greatly appreciated
<?php
mode com1: BAUD=9600 PARITY=N data=8 stop=1;
$fp = fopen ("COM1:", "r+")
or die("Can't Open Port");
set_time_limit(0);
while(1){
$string = fread($fp, 6);
if(sizeof($string)>1){
echo "Received: $string \n";
fclose($fp);
die();
}
}
?>
kf4lsc
robera1@auburn.edu