Hi Guys,
I am new here and I'm learning PHP. I am uploading images via the website and then I am displaying them using the scan_dir function together with a while loop however the first two images are output as one dot and two dots then the images show up, why is this?
I am also trying to output 3 images per row with the use of Bootstrap, any ideas on how to properly do this?
scan_dir shows me the first two images as dots
Moderator: General Moderators
-
ShatterStar
- Forum Newbie
- Posts: 4
- Joined: Sun Nov 22, 2015 9:19 am
Re: scan_dir shows me the first two images as dots
scandir returns both files and directories. . is the current directory, .. is the parent directory. You can use is_dir as you iterate over your results to exclude these and other directories.
-
ShatterStar
- Forum Newbie
- Posts: 4
- Joined: Sun Nov 22, 2015 9:19 am
Re: scan_dir shows me the first two images as dots
Hi thanks for your reply