Z
Z
ZaurK2016-08-14 21:31:39
PHP
ZaurK, 2016-08-14 21:31:39

What to do if phpQuery clips the page?

Hello! When I get the page via file_get_contents , I get the full markup of the page, but then when I create the document via phpQuery, part of the table on the page disappears.

$page = file_get_contents($lk); // тут полная страница
$document = phpQuery::newDocument($page); // тут часть дом-структуры теряется.

I tried to get the page using cURL, but still the same picture when processing phpQuery. And I normally get other pages with the same code. Please advise how to solve this annoying problem.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Muhammad, 2016-08-14
@ZaurK

What is the best and fastest way to write a parser (PHP)?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question