Tail (follow) a remote file using a PHP script and telnet
PHP
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
tail.php

README.md

tail.php

Tail (follow) a remote file using a PHP script and telnet

$ telnet localhost 80
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.

You have to enter:

GET /tail.php HTTP/1.1
Host: localhost

NB: Make sure you end the above telnet commands with an empty line!

You can use Ctrl + ']' to get to the telnet prompt and type "quit" to exit.