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?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With