Backend and Infrastructure

Database Configuration Files in PHP

Sprout Video

To make it easier to control your app, configuration, like your database username and password, is usually isolated into its own file. In this tutorial we'll create a new file called config.php and see how to simplify our database information.