Hi PHP Gurus !
Anyone have idea to copy table to file from the web?
>From the unix shell we can do :
COPY table_name TO '/home/someone/table_name.dat' ;
I tried inside PHP
$con=pg_connect("","","","",dbname);
$result=pg_exec($con,"COPY table_name TO '/home/someone/table_name.dat'");
pg_close($con);
but got error.
I use Apache+PHP+PostgreSQL on Redhat7
Any suggestion for me ?
Thank for your help !
GTM
- Re: [PHP-DB] Copy table to file inside PHP Achmad Gutomo
- Re: [PHP-DB] Copy table to file inside PHP Brian C. Doyle
- Re: [PHP-DB] Copy table to file inside PHP Brian C. Doyle