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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.