Can't seem to get Psql and Exec to work together

From: "YC Nyon" <ycnyon(at)pd(dot)jaring(dot)my>
To: <pgsql-php(at)postgresql(dot)org>
Subject: Can't seem to get Psql and Exec to work together
Date: 2002-11-06 16:30:28
Message-ID: 00c901c285b4$37c57490$5340baca@gis
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

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

Responses

Browse pgsql-php by date

  From Date Subject
Next Message David Busby 2002-11-06 18:08:02 Handling timestampz datatype
Previous Message angelo.rigo 2002-11-06 16:23:12 updating