Here's how I connect to my database:
- create a "access.php" file that has the username and password of the database inside it.
- create a "main.php" file in which I include access.php and then create MySQL connection and the rest.
How secure is this way of coding? I'm just a bit scared that if someone could somehow donwload the access.php and get to know my user and pass.
Any suggestions?