PHP: Get Page URLs / Directoy Listings

A simple function to easily process a website or file and return an array of all the URLs found. The main purpose I created this was to make it easy to process “Directory Listings Pages” which is a page which shows all the files and folders in a websites directory if there inst a default/index page or the directory listings is enabled.

I have used it to find images on another website (which has directory listings enabled) and display the found URLs / Images on another website. It it up to you how you use it but I am not sure what its limit are in terms of URLs per page.

Leave a Reply

fourteen − six =

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Next ArticleMaking Internet Explorer development easier