PHP Classes

File: mysql_db_connect.cfg.php

Recommend this page to a friend!
  Packages 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: 23 years ago
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;
?>