PHP Classes

File: samples/config.php

Recommend this page to a friend!
  Classes of Aleksey Nemiro   Nemiro Data PHP   samples/config.php   Download  
File: samples/config.php
Role: Configuration script
Content type: text/plain
Description: Example script
Class: Nemiro Data PHP
Compose and execute MySQL or PostgreSQL queries
Author: By
Last change:
Date: 8 years ago
Size: 792 bytes
 

Contents

Class file image Download
<?php
# ---------------------------------------------------------------
# MySql
define('MYSQL_DB_NAME', 'test');
define('MYSQL_DB_USER', 'test');
define('MYSQL_DB_PASSWORD', 'tS0BMRtPn4Lz');
define('MYSQL_DB_HOST', 'localhost');
define('MYSQL_DB_PORT', 3306);
# Connection mode:
# 0 - manual;
# 1 - auto - open and close for each request;
# 2 - smart (recomended).
define('MYSQL_DB_MODE', 2);
# ---------------------------------------------------------------
# PostgreSQL
define('PGSQL_DB_NAME', 'test_db');
define('PGSQL_DB_USER', 'test');
define('PGSQL_DB_PASSWORD', '5QKfHhB323EM');
define('PGSQL_DB_HOST', 'localhost');
define('PGSQL_DB_PORT', 5432);
# Connection mode:
# 0 - manual;
# 1 - auto - open and close for each request;
# 2 - smart (recomended).
define('PGSQL_DB_MODE', 1);
?>