This is a very simple, naive and crude PHP implementation of a minimalist gopher server. It only opens a socket, awaits for a (single) client and displays back an informational screen. The program is about 40 lines long.
It is meant as a dumb (simplest possible) example of a gopher server for students and hobbyists to fiddle with and possibly build upon. It supports only a single client at a time for the sake of simplicity. Any evolution, improvements and fixes of this software are left to the users. Good luck.
Written by Mateusz Viste, who released it to the public domain.