I have been looking for a function that finds links on a web page, i have used get_meta_tags() and file_get_contents() to get data off of a web page and wondered if there was something similar to get URLs. If not what would be simple and logical way to get URLs off a page?
I'm attempting to write some crawling script, i want to extract and store in MySql all URLs encountered on a web page and then open the file that they point to and repeat the process for a nominal amount of web pages.