1<?php 2// These vars are used to connect db and create test table. 3// values can be set to meet your environment 4 5$conn_str = "host=localhost dbname=test"; // connection string 6$table_name = "php_pgsql_test"; // test table that should be exist 7$num_test_record = 1000; // Number of records to create 8 9$table_def = "CREATE TABLE php_pgsql_test (num int, str text, bin bytea);"; // Test table 10$field_name = "num"; // For pg_field_num() 11 12?>