K
K
kefircus2021-06-19 01:12:12
PHP
kefircus, 2021-06-19 01:12:12

Variable in php is truncated, how to fix?

$var = file_get_html('...');

For some reason, the data received by the file_get_html() function is cut off at the end. The question is probably stupid, but what to do in such a situation? Only 7-8 thousand characters are saved, the rest die

Pamagity

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
SagePtr, 2021-06-19
@SagePtr

file_get_html is something non-standard. See the implementation of this function here.

V
Vladimir Kudrya, 2021-06-19
@Mugenzo

Are you looking at var_dump or what? So it cuts off healthy chunks of text, try wrapping it in a pre tag

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question