请教:文件名称大小写问题.... 在什么系统下?也可以用php写的 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 用目录递归的方式!!!<?function f_listDirectory($strLangDir="./"){ $dirCurrent=dir($strLangDir); while($strFile=$dirCurrent->read()) { $tmp = strtolower(strFile); if(is_dir($strFile) && $strFile!="." && $strFile!="..") { exec("mv $strFile $tmp"); chdir("$tmp"); f_listDirectory(); chdir(".."); } if(is_file($strFile)) { exec("mv $strFile $tmp"); } } $dirCurrent->close();}$path_of_ftp = "/path/of/your/directory";chdir($path_of_ftp);f_listDirectory();?> http://www.mistruster.com/soft/ckrn_108.exe让你对目录中文件进行复杂的更名,操作简单,支持中文文件名。 PHP问题 php 中的function函数,不会用呢 谁用PHP搞过域名抢注册程序的? 关于PHP Zend 的问题 在线等 大家给我推荐一个好的php新闻发布系统 PHP网站发布的配置问题,希望大家给予帮助,小弟感激不尽!(急!!!!!) PHP编码与javascript编码的问题 ubb代码怎么用啊? 怎么获得一个文件的绝对路径? 急急!!!!怎样才能取得ip地址呢? 图片显示!很急大家帮帮我(没分了不好意思) 数据库问题?
function f_listDirectory($strLangDir="./")
{
$dirCurrent=dir($strLangDir);
while($strFile=$dirCurrent->read())
{
$tmp = strtolower(strFile);
if(is_dir($strFile) && $strFile!="." && $strFile!="..")
{
exec("mv $strFile $tmp");
chdir("$tmp");
f_listDirectory();
chdir("..");
}
if(is_file($strFile))
{
exec("mv $strFile $tmp");
}
}
$dirCurrent->close();
}$path_of_ftp = "/path/of/your/directory";
chdir($path_of_ftp);
f_listDirectory();
?>
让你对目录中文件进行复杂的更名,操作简单,支持中文文件名。