tags:

views:

47

answers:

2

Hello,

I have come across lots of code which will find all the links on a page. I would like something that takes it a step further and finds it for the whole site.

Spidering the links is a little trickier than in seems!

Any ideas will be greatly received.

+2  A: 

Just feed the links you find on the pages back into the function that gets the links for one page. Keeping track of which pages you have done and making sure you don't jump out to another domain.

zaf
A: 

theres a function written at http://www.onderstekop.nl/articles/114/ I think the example there does exactly what you need to.

Jamie