Looking for a script which, when given a page, will extract all links that exist in the same domain and present then as a tree or even a sorted list (a way to choose either would be good). I expect that this sort of thing exists and I just don't know what to search for (one google search I tried returned 22.5 Million)! I need help before I'm tempted to write it myself, and I'm sure that would be a wasted effort!
One other desireable feature is the location of "open" (sub)directories, ones that return a listing instead of an index.xxx file.
The need is to analyze a potential customer's site for hierarchy and complexity (number of pages, etc.) as input to an unsolicited proposal.
This must be the type of code behind search engines, so maybe there is some sort of php do it yourself search engine script out there?