I have a php file, config.php and it contains following code.
$_config = array(
'db' => array(
'mysolidworks' => array(
'host' => 'localhost',
'username' => 'netvibes',
'password' => 'frakcovsea',
'dbname' => 'sw_mysolidworks',
'driver_options' => array(
PDO::MYSQL_ATTR_USE_BUFFERED_QUERY => true
)
)
)
);
I want to read this file into a variable and then read the variable like an array. Could anyone help?