Jump to content

Warning: fsockopen() error removal


Terrum

Recommended Posts

This error comes up when i access my page. (Note: I wrote HIDDEN to hide information i don't want on this forum.)

 

Warning: fsockopen() [function.fsockopen]: unable to connect to HIDDEN (A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. ) in D:\xampp\htdocs\bod\radio_stats.php on line 22

your message is Offline

 

It says this because it can't connect to the server (Because it isn't up).

 

Now the question is, How do I make it so that it doesn't show up that error? It just continues the script ignoring that error or something? It's trying to connect to a SHOUTcast server I host, but its not up unless i turn it on, and instead of it coming up with that error, i just want it to say offline (It says offline when the shoutcast server is on, but no one is hosting on it) So im guessing the script must continue and ignore that error or something so it says Offline.

 

Basic question: If there is a way to remove that error, then that's basically what I want.

 

I hope you understand

 

Link to comment
https://forums.phpfreaks.com/topic/113967-warning-fsockopen-error-removal/
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.