<?php
$file = "ueditor\php\upload\image\*\*.png";
foreach (glob("$file") as $filename)
{
//echo "<img src=\"".$filename."\"> ";
echo "<input type='submit' name='update' value='$filename'>";
}
?>
<form name="input" action="" method="post">
输入目标文件夹路径:<input type="text" name="dir"/>
<input type="submit" value="提交" />
</form> <img src="ueditor\php\upload\image\20141124\1416834279117261.png"> <input type='submit' name='update' value='ueditor\php\upload\image\20141124\1416834279117261.png'><img src="ueditor\php\upload\image\20141124\1416834287596721.png"> <input type='submit' name='update' value='ueditor\php\upload\image\20141124\1416834287596721.png'><img src="ueditor\php\upload\image\20141124\1416834294486130.png"> <input type='submit' name='update' value='ueditor\php\upload\image\20141124\1416834294486130.png'>
这样感觉会给删除带来一个有利的条件