PHP Development
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Remember me

Go Back   Dev Articles Community ForumsProgrammingPHP Development

Add This Thread To:   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
Unread Dev Articles Community Forums Sponsor:
Old June 25th, 2011, 03:37 AM
XanderScott XanderScott is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
Join Date: Jun 2011
Posts: 1 XanderScott User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 m 57 sec
Reputation Power: 0
General - PHP Telnet Scripting

So I want to create a web page that connects to a telnet server running a MUD. read the output from the connection one line at a time and parse and handle the output with a PHP script to run a very intensive and specific bot for the game.

I want to be able to analyze each line from the telnet connection and store information directly to a MySQL db, allowing the script to interpret and store information to be used as a web accessible game reference while also sending commands back over the telnet connection in response to analyzed output.

Specifically I need to understand how to create and sustain the connection. how to check if the connection has been closed by the host or disconnected so the connection can automatically reestablish itself and if there is a php library that can interpret the ANSI color codes etc so the strings received from output can be checked with AND without color specific traits. then finally, how to close the connection when the process has finished.

Is anyone able to break this down for me so I can better understand the process or how the code would need to be written?

Reply With Quote

Viewing: Dev Articles Community ForumsProgrammingPHP Development > General - PHP Telnet Scripting

Developer Shed Advertisers and Affiliates

Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 

Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.

© 2003-2019 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap