Config.php
// Database settings $db_host = 'localhost'; $db_name = 'mydatabase'; $db_username = 'myuser'; $db_password = 'mypassword'; $db_port = 3306;
<?php // smart_config.php if (file_exists(__DIR__ . '/.development')) define('ENV', 'development'); $db_host = 'localhost'; $debug = true; elseif (file_exists(__DIR__ . '/.production')) define('ENV', 'production'); $db_host = getenv('PROD_DB_HOST'); $debug = false; config.php