$url= $_GET['url']; $link="http://"; $site=$link.$url; include("domain.class.php"); include("LIB_http.php"); include("LIB_parse.php"); include("LIB_resolve_addresses.php"); include("LIB_exclusion_list.php"); include("LIB_simple_spider.php"); include("LIB_download_images.php"); $domain=new domain($site); if($domain->is_available()){ $status = "<h3>domain $site is available</h3>"; echo $status; $data = file_get_contents($site); $dom = new DOMDocument(); $dom->loadHTML($data); $xpath = new DOMXPath($dom); $hrefs = $xpath->evaluate("/html/body//a"); echo "<h3>Results:</h3>"; echo "<br><hr>"; for ($k = 0; $k < $hrefs->length; $k++) { $href = $hrefs->item($k);