melancholy
Новичок
PHP:
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);
file_put_contents('1', $one);
echo $one;
}