I would know if it is secure to centralize database information into one file like this :
$server = "localhost"; $user = "root"; $password = "1234"; $database = "foo"; $table = "bar";
And then, include this file when I need to:
include("db_infos.php'); mysql_connect($server, $user, $password); ...
Is there any way to get the database information, else is there other ways more secured or more relevant (both are accepted ;p )?
If it's not secure please tell me why, and how it will :)