php get real files


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. $files = scandir('images');
  2. foreach( $files as $file ) { if(substr($file,0,1)!='.') {
  3. echo $file;
  4. }}

Report this snippet


Comments


You need to login to view comments.