CODE (htmlphp):
скопировать код в буфер обмена
скопировать код в буфер обмена
- include_once('lib/curl_query.php');
- include_once ('lib/simple_html_dom.php');
- $html = curl_get('http://site.com/news/');
- $dom = str_get_html($html);
- $heads = $dom->find('.searchheadline');
- foreach ($heads as $head){
- $a = $head->find('a', 0);
- $one = curl_get('http://site.com' . $a->href);
- echo $one;
- }