Minecraft Server Information (No Plugins Needed)

Ask about a PHP problem here.
Post Reply
axas
Posts: 5
Joined: Thu Jun 21, 2012 7:47 pm

Minecraft Server Information (No Plugins Needed)

Post by axas »

Hello
I have used your tutorial to write a MC serv er information. It works like a treat!
Problem is, when I try to use it on my website, it just falls apart. What I mean is that the script is unable to connect to the server to get needed information. It works fine on localhost. I have contacted my server provider, and they say that the server supports fsockopen(), but their firewall will block eveyrhing apart from port 80.

Is there a way round it to get that script working on the web server?

Thanks
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: Minecraft Server Information (No Plugins Needed)

Post by jacek »

Not if the port is blocked no :( I would ask your host to unblock it if you can.
Image
axas
Posts: 5
Joined: Thu Jun 21, 2012 7:47 pm

Re: Minecraft Server Information (No Plugins Needed)

Post by axas »

They have said no, so that is it, thank you for the anwser.
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: Minecraft Server Information (No Plugins Needed)

Post by jacek »

axas wrote:They have said no, so that is it, thank you for the anwser.
Yeah sorry there is not really a work around. Well if you can configure your Minecraft server to run on port 80 it would work then but that's not the best solution. :lol:
Image
axas
Posts: 5
Joined: Thu Jun 21, 2012 7:47 pm

Re: Minecraft Server Information (No Plugins Needed)

Post by axas »

Well, Im guessing that the MC hosting company would not be happy then :D

I have another question, is there a way of having the file with function be hosted on a server which doesnt have minecraft port blocked, and use it to display it on second server? I know that by using include statment will not work as its blocked in settings
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: Minecraft Server Information (No Plugins Needed)

Post by jacek »

You could use it as a kind of proxy, so you make a script that outputs the data and from your main server you can use file_get_contents() to get it. But why not just host the entire thing on the server without the block ?
Image
axas
Posts: 5
Joined: Thu Jun 21, 2012 7:47 pm

Re: Minecraft Server Information (No Plugins Needed)

Post by axas »

Because the server which has no block has something diffrent on it and a diffrent domain name connected to it and moving stuff around is not an option
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: Minecraft Server Information (No Plugins Needed)

Post by jacek »

You are pretty stuck then. It would be pretty slow to proxy it via the other server so I would only use that as a last resort.
Image
axas
Posts: 5
Joined: Thu Jun 21, 2012 7:47 pm

Re: Minecraft Server Information (No Plugins Needed)

Post by axas »

Well file_get_contents() is also blocked, pff it would probebly be easier to change the hosting at this rate.
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: Minecraft Server Information (No Plugins Needed)

Post by jacek »

axas wrote:Well file_get_contents() is also blocked, pff it would probebly be easier to change the hosting at this rate.
With that amount of pointless restrictions I thing that would probably work out for the best.
Image
User avatar
Helx
Posts: 350
Joined: Thu May 17, 2012 6:45 am
Location: Auckland, New Zealand

Re: Minecraft Server Information (No Plugins Needed)

Post by Helx »

I like my host, but they block everything (lol)
But that why I use one of my Minecraft server's complementary web server's to do all the stats.

But the only problem is that you can't use Minecraft servers with Cloudflare, so I had to make a new A DNS forwarding to it, so it has even more requests :<

Hehe, a 150 player-capable server down to 30 :/

(even though my server gets deserted at times) :P

EDIT: I just realized I could have used the CDN server :(
Post Reply