Jump to content

I am pretty confused w/ fsockopen


Singod

Recommended Posts

Well you see I am making a help site for runescape private server users. I was up all night trying to whip up a simple server status list so people can view whether or not their favorite servers are online and ready for logging in.

 

Port "80" shows online but port "43594" (Default port for servers) is always offline. I check other status lists and the particular server(s) I am adding to my list to test the functionality shows it is online, but on mine, 43594 just simply doesn't want to cooperate.

 

Here is the code I wrote:

http://pastebin.com/d707919b1

 

Here is my work in progress:

http://ff7cloud0.ulmb.com/Serverlist.php

 

Can someone fix it or point me in the right direction? I would much appreciate some help w/ this. Never ran into this problem before.

 

Thanks,

Singod

Link to comment
https://forums.phpfreaks.com/topic/152694-i-am-pretty-confused-w-fsockopen/
Share on other sites

Hrmmm....

 

I would think that fsockopen might be disabled on your host, but if it works with 80, that wouldn't be it.  Perhaps your host has firewall rules setup so that only port 80 can go out or something.

 

 

When ever you do fsockopen and it fails, try echoing out the $errstr variable and see what it says.

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.