Новичок

Покинул форум
Сообщений всего: 1
Дата рег-ции: Сент. 2018
Помог: 0 раз(а)

|
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; }
переменная $one не получает значения, при выводе или в файле просто пусто
|