How could I get the XML data similar to the loaded data at the following location and convert it to JSON with PHP?
https://secure.activecarrot.com/public/session/browse_raw/1242/1/582/2020-12-22
I tried this but it returns false:
$url = "https://secure.activecarrot.com/public/session/browse_raw/1242/1/582/2020-12-22";
$xml = simplexml_load_file($url);
print_r($xml);
https://stackoverflow.com/questions/65402340/how-to-get-xml-data-and-convert-to-json-with-php December 22, 2020 at 09:57AM
没有评论:
发表评论