php 修改文件中变量
$filename ="bbbbbbb";$dir = dirname(__FILE__);$path = $dir."".DIRECTORY_SEPARATOR."config.php";echo $path;$contents = file_get_contents($path);$contents = modify_ini_value($contents,"theme",$filename);file_put_contents($path,$contents);function modify_ini_value($content,$key,$replace){ $match = '/([ \t]*)(\$'.$key.'\s*=\s*\"?)(.*?)(\"?)(\s*;\s*$)/m'; return (preg_replace($match,"\${1}\${2}{$replace}\${4}\${5}",$content));}
?
jQuery图片背景墙聚光灯效果代码,鼠标悬停在某张图片上时,该图片变亮,其他图片变暗。兼容主流浏览器,php中文网推荐下载! 使用方法: 1、head区域引用文件lrtk.css及jquery 2、在文件中加入区域代码 3、复制images文件夹里的图片到相应的路径 4、修改图片的透明度,opacity :










