$filename ="bbbbbbbb";
$dir = dirname(__FILE__);
$path = $dir."".DIRECTORY_SEPARATOR."config.php";
_cho$path; $path);
$contents =modify_ini_value($contents,"主題",$filename);
file_put_contents($path,$contents);
functionmodify_valfunctionmodify_value(
$match = '/([ t]*)($'.$key.'s*=s*"?)(.*?)("?)(s*;s*$)/m' ;
return (preg_replace($match,"${1}${2}{$replace}${4}${5}",$content));
}