I want to read content files in the url without using ftp connection. I have more images in the site http://somedomain.com/images as photo1.png, photo2.png and etc.,
I want to read these name of the image through my coding. By using these i wiil get these. But how do i get funny1.png, funny2.png and etc.,..
<li><a href="funny1.png"> funny1.png</a></li>
<li><a href="funny10.png"> funny10.png</a></li>
<li><a href="funny2.png"> funny2.png</a></li>
<li><a href="funny3.png"> funny3.png</a></li>
<li><a href="funny4.png"> funny4.png</a></li>
<li><a href="funny5.png"> funny5.png</a></li>
<li><a href="funny6.png"> funny6.png</a></li>
<li><a href="funny7.png"> funny7.png</a></li>
<li><a href="funny8.png"> funny8.png</a></li>
<li><a href="funny9.png"> funny9.png</a></li>
</ul>
</body></html>
You would have to have some code on the server that generates the file list for you, unless you run an apache server and you don’t have an index.html file. In that case, the url “http://somedomain.com/images would return a list of files, which you can read in your app. You’d have to interpret the html in order to get a plain list of files.