From: YC Nyon <ycnyon@pd.jaring.my>
To: pgsql-php@postgresql.org
Subject: Can't seem to get Psql and Exec to work together
Date: Thu, 7 Nov 2002 00:30:28 +0800
Message-ID: <00c901c285b4$37c57490$5340baca@gis> (raw)
I am trying to run Postgresql's psql using Exec() command.
The code is below
<?
$convert_sql_2 = "\"C:\postgresql\bin\psql.exe -d Geoprocessing -f
C:\\postgresql\\bin\\g126.sql";
exec($convert_sql_2,$ds);
?>
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
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: ycnyon@pd.jaring.my
Subject: Re: Can't seem to get Psql and Exec to work together
In-Reply-To: <00c901c285b4$37c57490$5340baca@gis>
References: <00c901c285b4$37c57490$5340baca@gis>
* 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