PHP Classes

File: config.php

Recommend this page to a friend!
  Classes of Mohammad al-herbi   Class Connect Database   config.php   Download  
File: config.php
Role: Configuration script
Content type: text/plain
Description: config
Class: Class Connect Database
Connect to a MySQL database
Author: By
Last change: name
Date: 12 years ago
Size: 766 bytes
 

Contents

Class file image Download
<?PHP

 
# Mohammad al-herbi - MANtrv - old 19 years - KSA - Madinah
 # mantrv@hotmail.com
 # http://www.facebook.com/mantrv
 # https://twitter.com/mantrvv
 # This is Class First For Me

 # Class connect Database + pages safe + Very fast + free of errors

if(preg_match("/config/i",$_SERVER["PHP_SELF"])){die("No Accass");} // default


#--------------------------Setting Config--------------------------------#

// # default Localhost
$Config['HOST'] = 'localhost';
// # Name User Mysql
$Config['USER'] = 'rgoot';
// # Pass Mysql
$Config['PASS'] = 'root';
// # Name DATA Mysql
$Config['DB'] = 'test';


# The Pages Security Pages | Ex. '/page1|page2|page3/i'

$Config['NO_ACCESS_PAGE'] = '/mysql_class|config2/i';






?>