News for hackers. Stuff that matters.
Re:What Were CGI Scripts? by knadh on Sunday July 21, 2019 @01:05PM (#20492309)
This makes me nostalgic. Spent inordinate amounts of time writing terrible, unmaintainable Perl scripts and FTPing them to cgi-bin on free 5MB hosting plans on F2S and Netfirms. Most hosts wouldn't provide error logs, so there was nothing more than a 500 page from httpd to tell you that something had gone wrong. Debugging anything was an endeavor. Then of course, PHP came along and killed cgi-bin.

If I had to pick one thing to represent the CGI era, it would be Matt's FormMail [1].

[1] https://www.scriptarchive.com/formmail.html

Re:What Were CGI Scripts? by lloeki on Sunday July 21, 2019 @04:20PM (#20493422)
> terrible, unmaintainable Perl scripts

Lucky you. At a previous workplace I had to cater with actual binaries produced from C source code that contained strings that contained script tags that contained JS code that generated HTML. I’ll let you sink that in and process the escaping.

Apparently it never occurred to some people that they could read those from disk, even from the C program.

Re:What Were CGI Scripts? by deckard1 on Sunday July 21, 2019 @06:36PM (#20494098)
> PHP came along and killed cgi-bin

PHP was using CGI like Perl. And then PHP had Apache's mod_php, which I believe is still widely used today.

Perl, of course, had mod_perl. And later, PSGI/Plack followed by Catalyst, Mojolicious, Dancer, etc.

Re:What Were CGI Scripts? by johannes1234321 on Sunday July 21, 2019 @09:11PM (#20494728)
mod_perl had the issue that it had hooks deep into the webserver, which wasn't "shared hosting safe" mod_php had less hooks and some basic cross-vhost-access mitigations (Safe_mode oben_basedir etc.) which allowed independent users to put PHP scripts on the same server, which in turn made web hosting cheap.
Re:What Were CGI Scripts? by chriswarbo on Monday July 22, 2019 @12:57PM (#20499895)
When I last used PHP (about 5 years ago) it was common to use it via FastCGI "for performance". I'm not sure how true that reasoning was, or how the speedups of 7.x have changed things, but (Fast/S/whatever)CGI still seems prevalent.
Re:What Were CGI Scripts? by beanjammin on Sunday July 21, 2019 @02:33PM (#20492880)
Matt's Script Archive was a great resource.
Re:What Were CGI Scripts? by wdr1 on Monday July 22, 2019 @01:27AM (#20495516)
Matt's Script Archive was a great source of security holes.
Re:What Were CGI Scripts? by maxyme on Sunday July 21, 2019 @01:18PM (#20492396)
Oh man I remember using the Netfirms free tier! The internet was so different back then, a company wasn't afraid of giving free compute resources on subdomains of their main site.
Re:What Were CGI Scripts? by j4_hnews on Sunday July 21, 2019 @02:18PM (#20492789)
More recently, the Netfirms team started another free service: https://www.sync.com/about/
Re:What Were CGI Scripts? by efdee on Sunday July 21, 2019 @01:51PM (#20492603)
To be fair, there are a LOT more companies today giving free compute resources on their sites :-)
Re:What Were CGI Scripts? by patsplat on Sunday July 21, 2019 @01:46PM (#20492569)
So many problems solved by formmail.pl
Re:What Were CGI Scripts? by johnchristopher on Sunday July 21, 2019 @02:02PM (#20492683)
When PHP used to mean "Powerful Heavenly Perl".

Rumor had it the first version was written in Perl.

Re:What Were CGI Scripts? by darrenf on Sunday July 21, 2019 @03:48PM (#20493276)
No, it was Personal HomePage tools. It was written in C. Rasmus even explicitly said you didn't need Perl when he first announced it on Usenet, here: https://groups.google.com/forum/#!msg/comp.infosystems.www.a...
Re:What Were CGI Scripts? by johnchristopher on Sunday July 21, 2019 @04:41PM (#20493529)
I know, that's why I used the word `rumor`. Powerful Heavenly Perl was a geek joke (like PlentyofHorsePower).