, detailing every major constant available for use in the file. Production-friendly Configuration Files in PHP DEV Community
A common "long feature" is the ability to automatically detect if the site is on a local, staging, or production server. This prevents you from accidentally overwriting production settings with local ones. How it works: You can use environment variables (via config.php