PHP Classes

File: config.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Classes of Camilo Sperberg  >  Extended PGSQL  >  config.php  >  Download  
File: config.php
Role: Configuration script
Content type: text/plain
Description: The configuration needed to run the class
Class: Extended PGSQL
Access PostGreSQL databases using PDO
Author: By
Last change:
Date: 4 years ago
Size: 826 bytes


Class file image Download
<?php if(empty($proc)) die('No direct access allowed');

define('DB_SHOW_ERRORS',TRUE); // Show DB connection error to users?
define('DB_LOG_XML',FALSE); // Log all database activity to XML?
define('DB_URL_XML','/home/user/db-log.xml'); // Location of XML file, recommended place is outside the public_html directory!
define('DB_CACHE_LOCATION','cache/'); // Location of cache file(s), with trailing slash
define('DB_CACHE_EXPIRE','60'); // DB cache file expiricy, in seconds

define('PGSQL_HOST','localhost'); // your db's host
define('PGSQL_PORT',5432); // your db's port
define('PGSQL_USER','test'); // your db's username
define('PGSQL_PASS','test'); // your db's password
define('PGSQL_NAME','test'); // your db's database name