SimpleXML - I/O warning : failed to load external entity

后端 未结 4 1451
深忆病人
深忆病人 2020-12-28 14:09

I\'m trying to create a small application that will simply read an RSS feed and then layout the info on the page.

All the instructions I find make this seem simplist

4条回答
  •  南方客
    南方客 (楼主)
    2020-12-28 15:12

    $url = 'http://legis.senado.leg.br/dadosabertos/materia/tramitando';
    $xml = file_get_contents("xml->{$url}");
    $xml = simplexml_load_file($url);
    

提交回复
热议问题