Received: from hub.org.org (localhost [127.0.0.1]) by hub.org (8.10.1/8.11.0) with SMTP id e9PMuc695985 for ; Wed, 25 Oct 2000 18:56:39 -0400 (EDT) (envelope-from pgsql-interfaces-owner@hub.org) Received: from mail.mcsit.com (mail.mcsit.com [206.222.220.236]) by hub.org (8.10.1/8.11.0) with SMTP id e9PIlJO80369 for ; Wed, 25 Oct 2000 14:47:19 -0400 (EDT) (envelope-from DWinslow@mcsIT.com) Received: from SMTP agent by mail gateway Wed, 25 Oct 2000 13:57:16 -0600 Received: by mail.mcsit.com with Internet Mail Service (5.5.2650.21) id ; Wed, 25 Oct 2000 14:02:49 -0500 Message-ID: From: Dan Winslow To: "'pgsql-interfaces@postgresql.org'" Subject: libpq calls not working in a CGI environment Date: Wed, 25 Oct 2000 14:02:48 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" X-Archive-Number: 200010/214 X-Sequence-Number: 1571 Hi - I am developing a CGI program that runs under apache on linux ( redhat 7.0 ), and that uses libpq calls. It does a simple select of a single varchar column and does a strcpy to a local program variable using PQgetvalue. When I run it from the command line, it works great. When I run it as a CGI, it does not error but the string results are garbage. Any clues? Can post code if necessary. Thanks in advance. Dan Winslow