Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Make PHP respond to telnet (PHP Telnet Server)

I have a project to do and it goes like this:

When you open a telnet console and telnet to my server, PHP should respond with: "Hello, What is your name?"

And you type in your name and so on. How can I do this in PHP? Is it even possible?

like image 649
Techboy6601 Avatar asked Sep 05 '25 03:09

Techboy6601


1 Answers

See http://php.net/manual/en/book.sockets.php

This is a good tutorial to get you started. http://devzone.zend.com/article/1086

And google is your friend here as well: http://www.google.ca/search?q=php+socket+server

like image 136
hafichuk Avatar answered Sep 08 '25 00:09

hafichuk