Received: from druid.net (root@druid.net [198.96.119.226]) by hub.org (8.9.3/8.9.1) with ESMTP id GAA48744 for ; Thu, 29 Apr 1999 06:49:13 -0400 (EDT) (envelope-from darcy@druid.net) Received: from localhost (1843 bytes) by druid.net via sendmail with P:stdio/R:bind_hosts/T:inet_zone_bind_smtp (sender: ) (ident using unix) id for ; Thu, 29 Apr 1999 06:49:10 -0400 (EDT) (Smail-3.2.0.104 1998-Nov-20 #4 built 1999-Apr-13) Message-Id: Subject: Re: [INTERFACES] Pg and Perl!! In-Reply-To: from "Ilhuicatzi Cortes J. Henry" at "Apr 28, 1999 03:51:02 pm" To: ic94006@solar6.ingenieria.uatx.mx (Ilhuicatzi Cortes J. Henry) Date: Thu, 29 Apr 1999 06:49:09 -0400 (EDT) From: "D'Arcy" "J.M." Cain Cc: pgsql-interfaces@postgreSQL.org Reply-To: pgsql-interfaces@postgreSQL.org X-Mailer: ELM [version 2.4ME+ PL50 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 | 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.