I need a PHP function to recursively traverse an inputted array of websites, looking at all linked pages for either of these two things:
1) A particular link text name
2) A particular link file name
Once one of the above criteria is found, the html page where this link is found must be logged into a multi-dimensional array with the following information
1) The date
2) The parent URL
3) The page in which the file is found
4) The link text name
5) The link file name
Code must be clean and commented.
The prototype for the PHP function should input
a) An array of websites in the following format ([login to view URL])
b) A link text string to search for?
c) A file name text string to search for?
(user could submit either b or c, should be optional)