Jump to content

xml reading a file remotely


map200uk

Recommended Posts

sorry to be a pain, but someone must have an idea or know somewhere of use

Warning: simplexml_load_file(http://api.leoslyrics.com/api_search.php?auth=duane&artist=the kooks&songtitle=naive) [function.simplexml-load-file]: failed to open stream: HTTP request failed! HTTP/1.1 505 HTTP Version Not Supported in /opt/lampp/htdocs/xmltest/tests2.php on line 3

 

Warning: simplexml_load_file() [function.simplexml-load-file]: I/O warning : failed to load external entity "http%3A//api.leoslyrics.com/api_search.php%3Fauth=duane&artist=the%20kooks&songtitle=naive" in /opt/lampp/htdocs/xmltest/tests2.php on line 3

Array ( [artist] => the kooks [songtitle] => naive )

 

when i try to load the file in using variables as the parameters for the url i get all kinds of crazy errors-if i copuy the url from first warning and paste into a new firefox tab it workes fine, leaving me a bit unsure what the issue is , or more importantly how to fix it!?!

 

thanks in advance

Link to comment
https://forums.phpfreaks.com/topic/49315-xml-reading-a-file-remotely/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.