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

Поиск
Список
Период
Сортировка
От YC Nyon
Тема Can't seem to get Psql and Exec to work together
Дата
Msg-id 00c901c285b4$37c57490$5340baca@gis
обсуждение исходный текст
Ответы Re: Can't seem to get Psql and Exec to work together  (Andrew McMillan <andrew@catalyst.net.nz>)
Re: Can't seem to get Psql and Exec to work together  ("scott.marlowe" <scott.marlowe@ihs.com>)
Список 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




В списке pgsql-php по дате отправления:

Предыдущее
От: Andrew McMillan
Дата:
Сообщение: Re: Handling timestampz datatype
Следующее
От: "Papp Gyozo"
Дата:
Сообщение: Re: Spaawn another process