Find All Links on Web Page

$html = file_get_contents(‘http://www.TestDomain.com’);$dom = new DOMDocument();@$dom->loadHTML($html);// grab all the on the page$xpath = new DOMXPath($dom);$hrefs = $xpath->evaluate(“/html/body//a”);$list_urls = array();for ($i…

Continue Reading →

Posted in: PHP