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

RSS Icon Subscribe to comments

You need to login to post a comment.