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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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