can any one show me how to connect to the telnet useing curl function, or past the tutorial link, because im using this code and i get only one from the output, please help me.
$ch = curl_init($host_url);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_PORT, 1);
curl_setopt($ch, TELNET_OPTION_SYNTAX, 1);
curl_setopt($ch, CURLOPT_POST, 0);
curl_setopt($ch, CURLOPT_POSTFIELDS, $urlstring);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0);
curl_setopt($ch, CURLOPT_REFERER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$data = curl_exec($ch);
curl_close($ch);
echo "<br><br><br> $data <br><Br><BR>";