I use Symfony\Component\HttpClient\HttpClient to retrieve the page content because I use a proxy.
Код: Выделить всё
// Customizing the client
$this->httpClient = HttpClient::create(
[
'proxy' => $connection,
]
);
// I get the content of the page - everything loads normally, in the variable $web string
$web = $this->httpClient->request('GET', 'yandex.ru')->getContent();
Код: Выделить всё
// В $this->client / use simplehtmldom\HtmlWeb;
$this->client->load($web);
// result null
Источник: https://stackoverflow.com/questions/781 ... e-html-dom
Мобильная версия