Jump to content

[SOLVED] HTTP request failed


cahamilton

Recommended Posts

Hey guys. I'm midway through creating my mashup website and I've run into an error.

I've basically written a line of code, that will detect whether or not there is any data contained within the feed sources and output an error message as required.

But, I've run into a problem were it is detecting no content from feed sources, where feeds don't exist. I still get the error message I coded in, but a HTTP request failed error message on top of it. Here's an example of what I mean.

 

 

http://cahamilton.at-uclan.com/fyp/query.php?artist=Amiina

Here is a source were the feed exists, but there is no content. Hence the error message is output.

 

http://cahamilton.at-uclan.com/fyp/query.php?artist=jackson+united

Here is a source were the feed DOESNT exist. The same error message is output, but with the PHP warnings messages aswell.

 

Would there be any way to work around this and avoid the PHP error messages?

Link to comment
https://forums.phpfreaks.com/topic/155049-solved-http-request-failed/
Share on other sites

You my friend, are brilliant! For days I've been trying to figure that out!

 

Just out of interest, what impact does the @ sign have in front of the simplexml_load_file? All my simplexml statements have been without that, but thats seems to have fixed the problem pretty easily.

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.