Thought i would share a small tip with you about php that not many people know.

Create a file called config.php

and in that file place the following.

PHP Code: 
return array(
    
'db' => array(
        
'host' => 'litewarez.com',
        
'user' => 'usr'
        
//ETC
    
),
); 
Then when you need your config just go

PHP Code: 
$config = include 'config.php';
echo 
$config['db']['host']; // litewarez.com 
I bet you never knew that
litewarez Reviewed by litewarez on . A small tip in PHP Thought i would share a small tip with you about php that not many people know. Create a file called config.php and in that file place the following. return array( 'db' => array( 'host' => 'litewarez.com', Rating: 5