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