PHP: read a php url as xml and parse it

后端 未结 4 1817
误落风尘
误落风尘 2021-01-24 17:20

i got a url like this one http://somedomain.com/frieventexport.php and the content of this url is a plain XML structure if I check out the source-code of the site:<

4条回答
  •  北海茫月
    2021-01-24 17:44

    Try the following:

    $url = 'xml-file.xml';
    $xml = simplexml_load_file($url);
    print_r($xml);
    

提交回复
热议问题