You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I made the correction but it didn't work very well
Warning: DOMDocument::load(): EntityRef: expecting ';' in http://1337day.com/rss, line: 1 in C:\xampp\htdocs\config.php on line 800
Fatal error: Uncaught Error: Undefined constant "html" in C:\xampp\htdocs\config.php:798 Stack trace: #0 C:\xampp\htdocs\home\rss.php(54): rss('http://1337day....') #1 {main} thrown in C:\xampp\htdocs\config.php on line 798
function rss($feed) {
$rss = new DOMDocument(html);
$dom->DOMDocument ();
$rss->load($feed);
//@$rss->loadHTML($feed);
//@$rss->loadHTML($html);
$feed = array();
foreach ($rss->getElementsByTagName('item') as $node) {
$item = array (
'title' => $node->getElementsByTagName('title')->item(0)->nodeValue,
'desc' => $node->getElementsByTagName('description')->item(0)->nodeValue,
'link' => $node->getElementsByTagName('link')->item(0)->nodeValue,
'date' => $node->getElementsByTagName('pubDate')->item(0)->nodeValue,
);
array_push($feed, $item);
}
The text was updated successfully, but these errors were encountered: