list fieldnames in table? (from PHP) - Mailing list pgsql-general

Is there a simple way to list fieldnames in a table, from PHP?

When on the command-line, I just do \d tablename

But how to get the fieldnames from PHP commands?

pgsql-general by date:

Previous
From: "Brian Maguire"
Date:
Subject: what could cause inserts getting queued up and db locking??
Next
From: "Mayra"
Date:
Subject: Theory!!