php equivalent of CGI.pm

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • pittendrigh

    php equivalent of CGI.pm

    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_TI TLE") ...etc.
    or
    h1({align=>'cen ter'},"$forum_l abel") ...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.
  • pittendrigh

    #2
    Re: php equivalent of CGI.pm

    sandy@montana-riverboats.com (pittendrigh) wrote in message news:<fadd89e6. 0308170523.5077 cb17@posting.go ogle.com>...[color=blue]
    > 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_TI TLE") ...etc.
    > or
    > h1({align=>'cen ter'},"$forum_l abel") ...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?[/color]

    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_lit e.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.


    Comment

    Working...