Login   Register  
PHP Classes
elePHPant
Icontem

File: mysql_db_connect.cfg.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Albert van Dam  >  MySQL_DB_Connect  >  mysql_db_connect.cfg.php  >  Download  
File: mysql_db_connect.cfg.php
Role: Configuration script
Content type: text/plain
Description: Database Settings
Class: MySQL_DB_Connect
MySQL database connection manager
Author: By
Last change: Added configuration options to allow for rollback support
Date: 2003-01-05 20:31
Size: 673 bytes
 

Contents

Class file image Download
<?
    
// IP ADDRESS OR SERVER NAME OF MYSQL SERVER
    
$host="localhost";

    
// DATABASE YOU WANT TO USE. MUST EXIST
    
$db="database";

    
// USERNAME TO CONNECT TO SERVER
    
$user="dbuser";

    
// PASSWORD TO CONNECT TO SERVER
    
$pwd="dbpass";

    
// 1=SAVES ALL SQL QUERIES TO LOG FILE
    
$keeplog=1;

    
// PATH WHERE LOG SHOULD BE KEPT
    
$logpath="/logs/";

    
// 1=SHOW FULL MYSQL ERROR (QUERY, DB CONNECT INFO) | 0=SHOW MYSQL ERROR
    
$fullErr=1;

    
// 1=Rollback support on database (begin; commit; or begin; rollback;) This should only
    // be active if your tables are transactional like InnoDB. MyISAM does not provide
    // transactional support
    
$rollBackSup=1;
?>