Count number of files in folder in php

后端 未结 6 1247
礼貌的吻别
礼貌的吻别 2020-12-09 10:53


        
6条回答
  •  隐瞒了意图╮
    2020-12-09 11:28

    Just try this--

    if (glob($directory . "*.jpg") != false)
    $filecount = count(glob($directory . "*.jpg"));
    else
    $filecount = 0;
    

提交回复
热议问题