File: vojjin/config.php

Recommend this page to a friend!
  Classes of Vojin Petrovic  >  PHP Database Tables Class  >  vojjin/config.php  >  Download  
File: vojjin/config.php
Role: Configuration script
Content type: text/plain
Description: DB configuration and spl loader
Class: PHP Database Tables Class
Store and retrieve class objects in database table
Author: By
Last change:
Date: 13 days ago
Size: 297 bytes
 

 

Contents

Class file image Download
<?php
session_start
();
spl_autoload_register(function ($className) {
    require_once
__DIR__ . DIRECTORY_SEPARATOR . str_replace("\\", DIRECTORY_SEPARATOR, $className) . ".php";
});
const
_DB_SERVER = "localhost";
const
_DB_USER = "USERNAME";
const
_DB_PASS = "PASSWORD";
const
_DB_BASE = "DBNAME";


For more information send a message to info at phpclasses dot org.