/**************************************************************************************** * Using PHP config file * Description: * Recently to involve PHP, and now generally do not like to hard code parameters, so find out how to use the configuration file in PHP, * This will need to modify the parameters of the occasion is very cost-effective, the content is in the reference document. * 2017-2-27 Shenzhen Nanshan Ping Shan village Zengjianfeng ********************************************* ******************************************/First, reference documents:1. Using a PHP Class to Store Configuration http://www.ultramegasoft.com/blog/2010/02/php-class-to-store-configuration/ 2. Using PHP classes to store configuration data https://gonzalo123.com/2011/01/10/using-php-classes-to-store-configuration-data/ 3. Is it right toSetA config PHPclassTo keep project settings?http://stackoverflow.com/questions/10987703/is-it-right-to-set-a-config-php-class-to-keep-project-settings 4. Creating a config fileinchPHP http://stackoverflow.com/questions/14752470/creating-a-config-file-in-php
Using PHP configuration Files