[gopher] Gophermap 2 Index PHP script

rl rl at well.com
Sun Aug 20 02:04:12 UTC 2017


James, I am now!  Not back when that email was written.  RL


Sent from my T-Mobile 4G LTE Device
-------- Original message --------From: James Mills <prologic at shortcircuit.net.au> Date: 8/19/17  20:45  (GMT-06:00) To: Gopher Project Discussion <gopher-project at lists.alioth.debian.org> Subject: Re: [gopher] Gophermap 2 Index PHP script 
I *thought* you were using gopherproxy[1] ? :D
cheersJames
[1] https://github.com/prologic/gopherproxy

James Mills / prologic

E: prologic at shortcircuit.net.auW: prologic.shortcircuit.net.au


On Tue, May 23, 2017 at 1:22 PM, Ray Lopez <rl at well.com> wrote:
Hi,

I still use gopher to serve files for my students, even though the

majority of them don't even know about gopher.  It is a lot easier for

me to manage the files on my gopher server, and the very clean interface

makes it pretty easy for the students to find what they need.



Up until recently I was using the floodgap proxy to allow them to access

my gopher content.  But now I have created a very simple PHP script that

will read a gophermap and output the content as HTML.  This allows me to

easily keep and maintain my gopher site, and also allows easy access by

anyone who does not know about or want to know about gopher.



You can get the script here:



gopher://salsa.net/0/~rlopez/gophermap2index.txt



And you can see it in action by going to:



http://salsa.net/~rlopez



It works best with the Motsognir gopher server, due to the use of the

%FILES% directive in a Motsognir-friendly gophermap.  But it should work

with pretty much any gophermap.



To use it you'll need a set of gopher content with a gopher server and

http/php server pointing at the exact same content.  Simply edit this

script with your server's base URL, rename it to index.php and place it

in each directory that has a gophermap file in it.  Now when you point

your web server at that same directory, it should serve up the gophermap

contents.



I've tested it as much as I can, but beware that this is a new script.

It has not been tested in any other environments other than my

LAMP/Motsognir server.



I hope this is useful to others.  Feedback and code changes are

welcomed.



RL



_______________________________________________

Gopher-Project mailing list

Gopher-Project at lists.alioth.debian.org

http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/gopher-project



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/gopher-project/attachments/20170819/f24970a0/attachment.html>


More information about the Gopher-Project mailing list