PHP 读json文件并转php配置文件
<?php$c = file_get_contents('./cities_v2.json');$s = "<?php return " . var_export(json_decode($c, true), true) . ";?>";file_put_contents('./c
PHP之数据库连接配置文件
<?php$config=array('host' =>'localhost','port'=>'3306','db' =>'localhost','db_user' =>'root','db_psw' =>'','db_name' =>'test');...
使用PHP配置文件
/**************************************************************************************** * 使用PHP配置文件 * 说明: * 最近要涉及...
php 慢配置文件
[root@localhost etc]# cat php-fpm.conf[global]pid = /usr/local/php/var/run/php-fpm.piderror_log = /usr/local/php/var/log/php-fpm.loglog_level = notice...