Hi every one
i have a Access Controller mechine
want send data and get the data from server
the retailer say i can use the TCP/IP to communication with it
i try meny time, use the socket, but fail.
could you teach me how to
thank you
code
$ip='280.88.287.18'; // i used also udp, but fail udp://280.88.287.18
$port=4660; //port
$packet = '078000052'; // send the data, ascii code
$fp = fsockopen($ip, $port, $errno, $errstr, 30); //
fwrite($fp, $packet); //send data
while (!feof($fp)) {
$data=fread($fp, 26); // read
echo $data;
}
Bogus IP to protect the innocent. Weedpacket