Hi all,
There's is my problem.
I Try to establish a telnet connection from a PHP script but i got error
message on the linux box when the script try to establish this connection.
There's two different script with two different messages :
Script1 :
$fp=fsockopen($server,23);
set_socket_blocking($fp,false);
fputs($fp,"$username\r\n");
fputs($fp,"$pass\r\n");
fclose($fp);
The errors message on the linux box (/var/log/message) :
telnetd[29044]: ttloop: read: Broken pipe
Script2:
$fp=fsockopen($server,23);
set_socket_blocking($fp,true);
fputs($fp,"$username\r\n");
fputs($fp,"$pass\r\n");
fclose($fp);
The errors message on the linux box (/var/log/message) :
telnetd[29044]: ttloop: read: Broken pipe
I have also try without the set_socket_blocking rule and i got the same
errors message.
If someone can give me some help on this one it will be appreciate.