Re: [INTERFACES] Pg and Perl!! - Mailing list pgsql-interfaces

From D'Arcy" "J.M." Cain
Subject Re: [INTERFACES] Pg and Perl!!
Date
Msg-id m10coNS-0000bIC@druid.net
Whole thread Raw
In response to Pg and Perl!!  ("Ilhuicatzi Cortes J. Henry" <ic94006@solar6.ingenieria.uatx.mx>)
List pgsql-interfaces
Thus spake Ilhuicatzi Cortes J. Henry
>    im using Pg to make CGI's beetwen Postgres and perl, where can i find
> examples about Pg. I have tried to make any CGI's and doesn't work fine.
> 
>   Does someone have any examples about CGI?

It's Python, not perl but it may give you some ideas.  I have a page of
motorcycle rides at http://www.druid.net/rides/ that I maintain in a
simple PostgreSQL database.  The page has a link at the bottom that
shows the actual Python source that manages the page.

If your pages fail altogether, you may just be missing the first line that
gives the content type.  Note in the source how the first print statement
displays the string "content-type: text/html" followed by one totally blank
line.  Without that your page won't work.

Note, IE users may have to click on the link then view source.  Some
versions of IE mistakenly try to parse the html in the text file that
they get handed.

-- 
D'Arcy J.M. Cain <darcy@{druid|vex}.net>   |  Democracy is three wolves
http://www.druid.net/darcy/                |  and a sheep voting on
+1 416 424 2871     (DoD#0082)    (eNTP)   |  what's for dinner.


pgsql-interfaces by date:

Previous
From: "michel"
Date:
Subject: connection postgres
Next
From: "michel"
Date:
Subject: postgres connection