Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id DE1D9476AA5 for ; Wed, 6 Nov 2002 23:40:59 -0500 (EST) Received: from sbsmtpd02.maxis.net.my (smtp2.maxis.net.my [202.75.130.123]) by postgresql.org (Postfix) with ESMTP id A2527476A9D for ; Wed, 6 Nov 2002 23:40:58 -0500 (EST) Received: from gis ([202.151.200.91]) by sbsmtpd02.maxis.net.my with Microsoft SMTPSVC(5.0.2195.5329); Thu, 7 Nov 2002 12:41:24 +0800 Message-ID: <00c901c285b4$37c57490$5340baca@gis> From: "YC Nyon" To: Subject: Can't seem to get Psql and Exec to work together Date: Thu, 7 Nov 2002 00:30:28 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 X-OriginalArrivalTime: 07 Nov 2002 04:41:24.0642 (UTC) FILETIME=[ED7AE820:01C28617] X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/19 X-Sequence-Number: 1601 I am trying to run Postgresql's psql using Exec() command. The code is below It didn't insert the data I hope it would. I tested it from the dos command line and it works fine. also i used $convert_sql_2 = "\"C:\postgresql\bin\psql.exe --help"; passthru($convert_sql_2,$ds); It works, giving me the help options. Nyon