From: "D'Arcy" "J.M." Cain <darcy@druid.net>
To: ic94006@solar6.ingenieria.uatx.mx
Cc: pgsql-interfaces@postgreSQL.org
Subject: Re: [INTERFACES] Pg and Perl!!
Date: Thu, 29 Apr 1999 06:49:09 -0400 (EDT)
Message-ID: <m10coNS-0000bIC@druid.net> (raw)
In-Reply-To: <Pine.GSO.3.96.990428153707.20316A-100000@solar6.ingenieria.uatx.mx>
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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: darcy@druid.net, ic94006@solar6.ingenieria.uatx.mx
Subject: Re: [INTERFACES] Pg and Perl!!
In-Reply-To: <m10coNS-0000bIC@druid.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox