PHP版虾囧CMS如何模仿快乐麻花、臭事百科和内涵段子制作笑话内容?
- 内容介绍
- 文章标签
- 相关推荐
本文共计85个文字,预计阅读时间需要1分钟。
以下是对原代码的简化改写,确保不超过100个字符:
phpwhile (!feof($handle)) { $file=readdir($handle); if ($file !=. && $file !=..) { $path=$path . / . $file; if (is_dir($path)) { file_list($path); } else { $fileList[]=$path . / . $file; } $path=substr($path, 0, strrpos($path, /)); }}return $fileList;
while (false !== ($file = readdir($handle))) { if ($file != "." && $file != "..") { if (is_dir($path."/".$file)) { file_list($path."/".$file); } else { //echo $path."/".$file."<br>"; $fileList[] = $path."/".$file; } } } } return $fileList; } ?>
本文共计85个文字,预计阅读时间需要1分钟。
以下是对原代码的简化改写,确保不超过100个字符:
phpwhile (!feof($handle)) { $file=readdir($handle); if ($file !=. && $file !=..) { $path=$path . / . $file; if (is_dir($path)) { file_list($path); } else { $fileList[]=$path . / . $file; } $path=substr($path, 0, strrpos($path, /)); }}return $fileList;
while (false !== ($file = readdir($handle))) { if ($file != "." && $file != "..") { if (is_dir($path."/".$file)) { file_list($path."/".$file); } else { //echo $path."/".$file."<br>"; $fileList[] = $path."/".$file; } } } } return $fileList; } ?>

