1. Use the Information Schema. Ref post # 10 in the PostgreSQL FAQ at the top of this forum.
2. There is no difference between procedures and functions in pg: 'procedures' in PostgreSQL are just functions that return no (void) values.
functions are also documented in the information schema. See #1.
3. I don't use PHP, so someone else will have to field this one.
"Lisa, in this house, we obey the laws of thermodynamics!" - Homer Simpson
"I have my standards. They may be low, but I have them!" - Bette Middler
"It's a book about a Spanish guy named Manual. You should read it." - Dilbert