I'm new to PHP and need some advices.
1. I need to etablish a connection to mySQL database (One.com), however, i found out that it's not safe, if the username and password to database is saved in php file. I heard about configuration files - is it safe? What is the best pattern to connect database through php code?