Can't do it.
The telnet part (which is in the [place where http:// goes) just tells your
web browser to load a local telnet program.
Secondly, if you have your "php" script open a telnet connection, it is the
server that has a connection, not the client. then, once the php script
finishes executing, it closes all sockets (which is how you would open a
telnet connection).
Aka ... it is the whole server/client programming again. You can have a php
page open a telnet client and interact with it within the script (aka the
script would read back what the telnet server said, do an appropriate action
and send to it, read what happens, etc.) but you can not ferret info from
the web client to the php server to the telnet and back.
So, since all OSes have a basic telnet client, there is no reason to even
have to code something. If you WANTED to code something, write a java
applet, embed it in the webpage and have the client load it. It wouldn't be
any different though than someone using their native telnet client, though.
----- Original Message -----
From: "Omar FALL" <diambar@h...>
To: "professional php" <pro_php@p...>
Sent: Thursday, May 09, 2002 3:13 PM
Subject: [pro_php] Open a telnet session (client) within a php page
> Hi Gurus,
>
> I'm trying to figure out something and I would really appreciate your
> feedback. What I want to to is to be able to open a telnet session (like
> telnet://telnet.server.com:23) within a php page.
>
> I really don't know if it's even possible. Can it be done through php
> programming? or should I consider using another programming language? is
> there any url where I could go and have some readings about this kind of
> issue?
>
> Thank you in advance for any answer,
>
> - Omar FALL -
>