Telnet using cURL

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Saethyr
Forum Contributor
Posts: 182
Joined: Thu Sep 25, 2003 9:21 am
Location: Wichita, Kansas USA
Contact:

Telnet using cURL

Post by Saethyr »

Has anyone done this? I searched and found a few things but none of them seemed to work.
User avatar
ol4pr0
Forum Regular
Posts: 926
Joined: Thu Jan 08, 2004 11:22 am
Location: ecuador

Post by ol4pr0 »

Why you should wanna go telnet from within the php?

have you tried this ?

Code: Select all

curl_init('telnet://somehost:22');
User avatar
Saethyr
Forum Contributor
Posts: 182
Joined: Thu Sep 25, 2003 9:21 am
Location: Wichita, Kansas USA
Contact:

Post by Saethyr »

I play on a MUD, or multi user dungeon, it's kinda D&D online but text based, I want a site I am building to be able to connect to and do certain commands so that certain information on the page is always current. As far as the code you suggested I have tried every cURL function I can find for telnet, but, I have read in many places that the telnet support in cURL is weak at best. I may end up doing this with python. Thanks guys.
Post Reply