How to show all files under a document and rename the file names?
April 16th, 2008 — admin$dirname=”E:/zhanzhongjie/chengbiao-com/chengbiao-com”;
$dir_handle=opendir($dirname);
while($file=readdir($dir_handle))
{
echo $file.”
“;
rename(”E:/zhanzhongjie/chengbiao-com/chengbiao-com/”. $file, “E:/zhanzhongjie/chengbiao-com/chengbiao-new/insurance-”.$file);
}
closedir($dir_handle) Read the rest of this entry »