Okay so I just discovered through godaddy standard hosting I can only fsockopen to ports 80 or 443, nad it costs so much for a vps or dedicated server. I need to access port 25565, is there any other way to do this avoiding the fsockopen command? I'm pretty new with PHP so I might need a little bit of help/detail.
Here is my code:
(sorry for the pastie but no matter what I tried some weird formatting kept appearing.)
Shared Hosting environments on 99% webhosts firewall higher ports such as 25565 - which is the main reason you're unable to open it via GD Shared environment.
On a sidenote, are you trying to access a minecraft server - because you're so specific about port 25565?
Thanks for the first bit, also it does happen to be a Minecraft server. I'm working on a website for a server owner and they wanted to know if I would add a server offline/online thing. I told them I would try, anytime in the future it could be other ports as well so I think it would be good for me to know if there's anyway to work around this?
Okay. But how are you running MC on a Godaddy shared hosting? They dont let you run one unless you have VPS or Dedicated, do they?
Assuming the MC server is hosted elsewhere and you're on a shared server and would like to just check the status of your MC server, you could use this: https://github.com/redwallhp/MCServerStatus
It's a great plug-in made with PHP to check the status of MC servers.
Yeah it's hosted somewhere else and I'm just using godaddy as a host for the website. Thank you for the github project link I think I'll use that and integrate it into my site. I actually remember using something like this before but anytime I typed in "Minecraft Server Status" I got a stats list. Thank you very much