Check out Grant Acedrex, our featured variant for April, 2024.


[ Help | Earliest Comments | Latest Comments ]
[ List All Subjects of Discussion | Create New Subject of Discussion ]
[ List Earliest Comments Only For Pages | Games | Rated Pages | Rated Games | Subjects of Discussion ]

Comments/Ratings for a Single Item

Earlier Reverse Order Later
Perl[Subject Thread] [Add Response]
🕸Fergus Duniho wrote on Sun, Oct 22, 2017 04:10 PM UTC:

It looks like Perl scripts are not working, and I'm not sure how to get them to work. For the most part, it may be possible to replace Perl scripts with PHP scripts or in some cases just some HTML. As far as I know, David Howe wrote all the Perl scripts, and he is no longer here maintaining them. So it may be best to just phase them out and rely on PHP scripts instead.


Greg Strong wrote on Sun, Oct 22, 2017 05:28 PM UTC:

I have no experience with Perl either.  What do we have that is powered by Perl script?


🕸Fergus Duniho wrote on Sun, Oct 22, 2017 06:56 PM UTC:

I have some experience with Perl, and David learned about it from a book I lent him. But I always favored PHP. So I just haven't done much with Perl. There are scripts in /cgi-bin/ with the .cgi or .pl extentions. These are Perl scripts.


🕸Fergus Duniho wrote on Mon, Oct 23, 2017 12:01 PM UTC:

To find the pages that include Perl scripts, you can sign into SSH and use grep. Here is some sample output from entering the command grep extern.cgi */*.html >extern1.txt from /home/chessvariants/public_html. This checks through HTML files in first-level subdirectories for the string "extern.cgi". My plan is to check for a given Perl script in all the files of the site, make appropriate changes in each file, and then when all references to a Perl script have been removed to delete the Perl script itself. In some cases, I expect I will have to write a new PHP script to replace the Perl script before I can start changing the references to it in files. With extern.cgi, I have mainly been entering an HTML link to the Zillions of Games page.


🕸Fergus Duniho wrote on Mon, Oct 23, 2017 12:58 PM UTC:

Given an ItemID, the extern.cgi script would return an external link to the item in the form of a link to "index/external.php?itemid=ItemID". Instead of writing a new script, I am replacing references to this script with URLs of the form "/link/ItemID". This makes use of the semantic URLs I have already setup for handling links. It will not work with offline pages, but if you could follow external links, you should also be able to use the actual site.


🕸Fergus Duniho wrote on Mon, Oct 23, 2017 04:58 PM UTC:

Since the files listed in extern1.txt are now taken care of, here is extern2.txt, a list of second-level files with the string extern.cgi in them.


🕸Fergus Duniho wrote on Mon, Oct 23, 2017 05:27 PM UTC:

Except for backups, which I won't bother with, I removed extern.cgi from all *.html files, and I didn't find it in any *.cgi, *.pl, *.php, or *.htm files. I also searched the membersubmissions table, and I didn't find it there. As a precaution against deleting things too early, I moved /cgi-bin/extern.cgi to /cgi-bin/oldcgi/extern.cgi. This is good enough for letting me see what I've done and what I still have to do.


7 comments displayed

Earlier Reverse Order Later

Permalink to the exact comments currently displayed.