Uncaught Exception: String could not be parsed as XML

Uncaught Exception: String could not be parsed as XML Stack trace: #0 /home/users/d/d/domains/example.com/index.php(218): SimpleXMLElement->__construct('') #1 {main} thrown in /home/users/d/d/domains/example.com/index.php on line 218

$url = "https://www.example.com/news/rss/";
$content = file_get_contents($url);
$items = new SimpleXmlElement($content);

В чем проблема, подскажите, пожалуйста?


Ответы (0 шт):