PHP Classes

File: config/config_database.php

Recommend this page to a friend!
  Classes of Peter   Storage Class   config/config_database.php   Download  
File: config/config_database.php
Role: Configuration script
Content type: text/plain
Description: Configuration script
Class: Storage Class
Manipulate data in arrays and store it in files
Author: By
Last change:
Date: 8 years ago
Size: 1,008 bytes
 

Contents

Class file image Download
<?php
class config_database {
    public static function
get_connect() {

       
$connect = array();

       
//read
       
$type = 'read';
       
$i = 0;
       
$connect[$type][$i]['use'] = 'mysql';
       
$connect[$type][$i]['host'] = '127.0.0.1';
       
$connect[$type][$i]['user'] = 'test';
       
$connect[$type][$i]['password'] = '12345678';
       
$connect[$type][$i]['database'] = 'test';
       
$connect[$type][$i]['charset'] = 'utf8';
       
$i++;

       
//write
       
$type = 'write';
       
$i = 0;
       
$connect[$type][$i]['use'] = 'mysql';
       
$connect[$type][$i]['host'] = '127.0.0.1';
       
$connect[$type][$i]['user'] = 'test';
       
$connect[$type][$i]['password'] = '12345678';
       
$connect[$type][$i]['database'] = 'test';
       
$connect[$type][$i]['charset'] = 'utf8';
       
$i++;

        return
$connect;
    }
}