PHP – count the number os files in a directory September 23, 2013Sh*tsPF All files $countfiles = count(glob($path.'/*')); just .jpg files $countfiles = count(glob($path.'/*.jpg'));