SyntaxFix
Write A Post
Hire A Developer
Questions
http_get should do the trick. The advantages of http_get over file_get_contents include the ability to view HTTP headers, access request details, and control the connection timeout.
http_get
file_get_contents
$response = http_get("http://www.example.com/file.xml");