I am trying to gram Urls which are in this link:
http://brillia.com/search/?area=26900,27999,28999
With this code block:
$url = 'http://brillia.com/search/?area=26900,27999,28999';
function fetch_sumitomo_links($url)
{
$htmldoc = HtmlDomParser::file_get_html($url, false, null, 0 );
foreach ($htmldoc->find(".boxInfomation a") as $a) {
$links[] = $a->href;
}
return $links;
}
$items = fetch_sumitomo_links($url);
print_r($items);
I actually grabbing URLs but not the page that I want. Simple_dom
or DOMdocument
grabbing this page's URL
http://brillia.com/search/
They doesn't read the this line: ?area=26900,27999,28999
By the way I am using Laravel.