I have created a file called config.php and it is as under
<?php
$dbUser="test";
$dbPassword="123456";
$dbName="testDatabase";
$dbHost="localhost";
$dbPort="3306";
$tablePrefix="test_";
?>
Now i have set permissions of this file to 744, so that i can make connection any time i need.
but what would happen if anyone else will try to read this file and make connection to my database server as a dbuser. this would be problematic for me.
So what should be done?? or what permissions should be given so that my web server will be able to read the file but anyone else who tries to read should not be able to read the file.
Thanks in advance.