palicannonfilelist.php 254 B

12345678910111213
  1. <?php
  2. include "./config.php";
  3. //获取服务器端文件列表
  4. $dir= $dir_myPaliCannon.$_GET["folder"]."/";
  5. $files = scandir($dir);
  6. $arrlength=count($files);
  7. for($x=0;$x<$arrlength;$x++) {
  8. if(is_file($dir.$files[$x])){
  9. echo $files[$x].',';
  10. }
  11. }
  12. ?>