PHP Classes

File: config.php

Recommend this page to a friend!
  Classes of Marcelo Telles   PHP CRUD   config.php   Download  
File: config.php
Role: Auxiliary script
Content type: text/plain
Description: Configuration script
Class: PHP CRUD
Manipulate model objects using a CRUD interface
Author: By
Last change:
Date: 26 days ago
Size: 639 bytes
 

Contents

Class file image Download
<?php

if($_SERVER['HTTP_HOST']=="localhost:8080"){
 
define('HOST', 'localhost');
 
define('USER', 'root');
 
define('PASS', 'usbw');
 
define('BASE', 'loja');
 
define('PORT', '3307');
 
$DATABASE_HOST = 'localhost';
 
$DATABASE_USER = 'root';
 
$DATABASE_PASS = 'usbw';
 
$DATABASE_NAME = 'loja';
 
$DATABASE_PORT = '3307';
}else {
 
define('HOST', 'localhost');
 
define('USER', 'root2');
 
define('PASS', 'usbw');
 
define('BASE', 'test');
 
define('PORT', '3306');
 
$DATABASE_HOST = 'localhost';
 
$DATABASE_USER = 'root2';
 
$DATABASE_PASS = 'usbw';
 
$DATABASE_NAME = 'test';
 
$DATABASE_PORT = '3306';
}