PHP Telnet String Listener

I need help getting started with my project. I would like to get code which will connect to a telnet server and listen for certain strings.

I would like to create an array of strings to watch for. When these strings come in on the telnet session I would like to run a function (Like write a flag to a database for example)

I would also like to use wildcards in the strings. For example:

"HE*O" would trigger on "HELLO"

"HE??O" would trigger on "HELLO"

"HE?O" would NOT trigger on "HELLO"

I'm not sure if you will need to do regular expressions for this or not. I've researched somethign called 'expect' in php and python which might work. I also had teh idea of using a FIFO buffer and constantly looping through my array to see if it matches the telnet buffer. I am looking for someone to write the low level base of this code then I will take it and continue on with the functinality after strings are being matched and dummy functions are being triggered.

This will run 24/7 in a PHP CLI instance. The real world application for this is to listen to a telnet enabled lighting server, when the server gives the code for Light #2 on I will flag it in the database, etc, for every light.

I found this, but I'm not sure if it's what we need:

[url removed, login to view];file=patServer/[url removed, login to view]

Please bid only if you are ready to start this.

Habilidades: PHP

Veja mais: php telnet listener, telnet string, create dummy listener telnet, telnet string php, php telnet buffer, what to write on my overview, using regular expressions, using expressions, use regular expressions, to string, string the, string i, string 2, session php, regular expressions in c, regular expressions example, regular expressions c, real expressions, m string, lighting the world

Acerca do Empregador:
( 2 comentários ) New York, United States

ID do Projeto: #62313

2 freelancers estão ofertando em média $100 nesse trabalho


Dear Sir/ Madam ------ We are a PIONEER company in Web Applications, Application development and Search Engine Optimization. Please find attached a BROCHURE of our company, [login to view URL], which contains all the details. We Mais

$99 USD in 15 dias
(1 Comentário)

I have worked on similar projects connecting to remote servers using sockets and listening for replys. Send me a pm and we can get started on this immediately. Thanks

$100 USD in 7 dias
(13 Comentários)