I have a folder with pics and I need to use scandir() to show all images in a html file. But scandir returns, for example, "image.jpg1". Why? How can I do that withouth problems?
killbill07
0
Newbie Poster
Recommended Answers
Jump to PostTry:
$f=scandir('/Images/'); foreach($f as $p) { echo '<img src="/Images/'.$p.'" />'; }
All 3 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.