简体   繁体   中英

How to use PHP to load a XML file by URL

I want to use PHP to load a XML from a URL like "HTTP://127.0.0.1/19/1", how can I do it? I tried several ways but they all failed.. so just ask for help here..thanks

<?php
$x=simplexml_load_file("HTTP://127.0.0.1/19/1");
?>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM