By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,278 Members | 1,342 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,278 IT Pros & Developers. It's quick & easy.

php equivalent of CGI.pm

P: n/a
I'm translating several old cgi scripts (that use CGI.pm)
to php. CGI.pm has a series of conventient function calls
for generating HTML code on the fly, like:
start_html(-text=>$TX, -bgcolor=>$BG,-title=>"$BBS_TITLE") ...etc.
or
h1({align=>'center'},"$forum_label") ...etc

Does anyone know of a php-clone package, with a matching API,
to make translating these old scripts more of search and replace
procedure?

BTW: if you're wondering "why not use the cgi script as is,"
it's because I want swap flat-file data storage to mysql,
for lots of query reasons.
Jul 16 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
sa***@montana-riverboats.com (pittendrigh) wrote in message news:<fa**************************@posting.google. com>...
I'm translating several old cgi scripts (that use CGI.pm)
to php. CGI.pm has a series of conventient function calls
for generating HTML code on the fly, like:
start_html(-text=>$TX, -bgcolor=>$BG,-title=>"$BBS_TITLE") ...etc.
or
h1({align=>'center'},"$forum_label") ...etc

Does anyone know of a php-clone package, with a matching API,
to make translating these old scripts more of search and replace
procedure?


Well I didn't get any leads on a php/cgi.pm clone. So I hacked one together
myself. I should probably call this cgi_pm_lite_lite.php.
Lincoln Stein's perl package is an impressive body of work. What I did
was just a quick hack to make translating scripts a little easier. But it works
for that. I got an old Bulletin Board script (that used cgi.pm)
up and running as php code in two after-work evenings.

http://montana-riverboats.com/cgi.php
Jul 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.