G
G
Good Samaritan2018-01-30 11:03:58
PHP
Good Samaritan, 2018-01-30 11:03:58

Why did the simple html dom library stop working?

Everything was working yesterday. Nothing works today.
This code gave me a copy of the site

$html = str_get_html("www.yandex.ru");
  echo $html;
Now he just writes in the browser www.yandex.ru, and in the title there are some krakozyabry.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
OKyJIucT, 2018-01-30
@OKyJIucT

str_get_html parses a string to parse the contents of the URL of the page, do not forget to specify the http (s) protocol, otherwise it will look for a file with the name www.yandex.ru in the file system

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question