标签: php function rename
$dir = new DirectoryIterator('./'); foreach ($dir as $filename) { if (mimes_content_type($filename) == 'txt') { rename($filename, './txt/'.$filename); } }
警告:重命名(txt,。/ txt / txt.txt):第78行的./www/session/test.php中的参数无效
有些建议我做错了什么?