Is it possible to use the postgresql COPY command in a php file?
I need to download table content from a database table to a file using a php script
$sql = " COPY tablename TO STDOUT WITH DELIMITER ',' ";
$db->query( $sql );
This code does not work for me, what is the right way?