我想替换Xml文档中的服务器地址。 地址:%scr_path%
。
<property id="urlGenerateImage">%scr_path%/imgcap.php</property>
采用以下守则
$path=$wsurl."core/contents/tests";
//read the entire string
$str=implode("
",file( ../includes/ckeditor/plugins/fmath_formula/dialogs/configMathMLEditor.xml ));
$fp=fopen( ../includes/ckeditor/plugins/fmath_formula/dialogs/configMathMLEditor.xml , w );
//replace something in the file string
$str=str_replace( %scr_path% ,$path,$str);
//now, TOTALLY rewrite the file
fwrite($fp,$str,strlen($str));
找出错误档案道路上的错误。 封锁了两条道路。 什么错误?