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.
Then when you need your config just go
I bet you never knew that
Create a file called config.php
and in that file place the following.
PHP:
return array(
'db' => array(
'host' => 'litewarez.com',
'user' => 'usr'
//ETC
),
);
Then when you need your config just go
PHP:
$config = include 'config.php';
echo $config['db']['host']; // litewarez.com
I bet you never knew that