[php]ParseNode($configxml);//读取XML文件内容? ? $dir = $xml->GetNodeValueByName($config, \"RootPath\"); //找到RootPath节点? ? ? ? $oldfile = $dir.$_POST[\"dir\"].\"/\".$_POST[\"file\"];? ? $newfile = $dir.$_POST[\"dir\"].\"/\".basename($_POST[\"newname\"]);? ? ? ? if(rename($oldfile,$newfile))? ? {? ? header(\"Location: ./?dir=\".$_POST[\"dir\"]);? ? exit;? ? }else? ? {? ?? ???die(\"文件重命名失败!\");? ? }}?>[/php]修改文件名字是正常的,可一修改文件夹名称就成乱码了 不解 请教一下大家[[i] 本帖最后由 伊达男 于 2007-8-4 16:14 编辑 [/i]]