Using cURL to get all links in a webpage
The code below finds all links in the href attribute of anchor tags of a given page url. [php] <? $request_url ='http://log.xmodx.com'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $request_url); // The url to get links from curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // We want t...
Continue reading ...