Hi,
First of all thank you very much for replying. I must say I have no experience in serial communication using PHP. I looked at the sites you had mentioned.
what is the meaning of 'write directly to the COM1 serial port'? I used the coding you had mentioned and tried it in my server and the result which displayed was a string that stored in the $string variable.So that`s mean it worked!.
what exectly did this code do?. The code below is what I ran from my server,
<?php
mode com1: BAUD=9600 PARITY=N data=8 stop=1 xon=off;
$fp = fopen ("COM1:", "w+");
if (!$fp)
{
echo "Uh-oh. Port not opened.";
}
else
{
$e = chr(27);
$string = $e . "A" . $e . "H300";
$string .= $e . "V100" . $e . "XL1SATO";
$string .= $e . "Q1" . $e . "Z";
echo $string;
fputs ($fp, $string );
fclose ($fp);
}
?>
please give me some advise.
thanx