How to show all files under a document and rename the file names?
$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)