Making a connection from your code

Sample connection scripts for connecting to your PostgreSQL database are provided for PHP, Perl and Java.

In all cases your connection script needs to specify four variables:

  1. Host (always set to localhost)
  2. Username
  3. Database name
  4. Password

Code specific examples

Wiki: support/PostgreSQL/Making_a_connection_from_your_code (last edited 2008-04-23 15:41:48 by KeiranHolloway)