Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_php thread: Making a telnet connection within php


Message #1 by "Callum MacEwan" <callum@m...> on Fri, 18 Jan 2002 23:28:33
What sort of "commands" are you sending?

Shell commands to try to interact with the login shell on the other side
will do nothing at best on a plain old socket connection.

If you're using an rfc854 telnet implementation in PHP and something
specific about that is not working, perhaps you could ask a specific
question and include what you're sending, and what (if anything) is
happening when you do.

FYI, rfc 854 is http://www.faqs.org/rfcs/rfc854.html

HTH,
Jake.

--------
Jacob Cohen (cohen@r...)
http://www.rafb.net/

-----Original Message-----
From: Callum MacEwan [mailto:callum@m...]
Sent: Friday, January 18, 2002 11:29 PM
To: professional php
Subject: [pro_php] Making a telnet connection within php


Hi I need to control another computer via telnet
I've tried the opening the connection using
$fp = fsockopen($ip,23);
but commands I send get no reply
any ideas out there?

Cheers

Callum



  Return to Index