<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>Comments on: Checking the Status of a Minecraft Server with PHP</title>
	<atom:link href="https://www.webmaster-source.com/2012/07/05/checking-the-status-of-a-minecraft-server-with-php/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.webmaster-source.com/2012/07/05/checking-the-status-of-a-minecraft-server-with-php/</link>
	<description>Useful Resources For Webmasters</description>
	<lastBuildDate>Mon, 06 Apr 2026 13:53:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.42</generator>
	<item>
		<title>By: Jack Selleck</title>
		<link>https://www.webmaster-source.com/2012/07/05/checking-the-status-of-a-minecraft-server-with-php/#comment-40300</link>
		<dc:creator><![CDATA[Jack Selleck]]></dc:creator>
		<pubDate>Wed, 26 Apr 2023 13:29:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmaster-source.com/?p=4730#comment-40300</guid>
		<description><![CDATA[what server did you use on this one? Because there is this one server that I always entered and it always crashes &lt;a href=&quot;https://www.google.com/maps?cid=3844051829375437419&quot; rel=&quot;nofollow&quot;&gt;Stump Grinding in Orland Park IL&lt;/a&gt;]]></description>
		<content:encoded><![CDATA[<p>what server did you use on this one? Because there is this one server that I always entered and it always crashes <a href="https://www.google.com/maps?cid=3844051829375437419" rel="nofollow">Stump Grinding in Orland Park IL</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mary Solero</title>
		<link>https://www.webmaster-source.com/2012/07/05/checking-the-status-of-a-minecraft-server-with-php/#comment-39455</link>
		<dc:creator><![CDATA[Mary Solero]]></dc:creator>
		<pubDate>Tue, 07 Dec 2021 13:44:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmaster-source.com/?p=4730#comment-39455</guid>
		<description><![CDATA[This is awesome. Thank you. &lt;a href=&quot;https://www.phillyfoundationrepair.com/waterproofing-philadelphia-pa.html/&quot; rel=&quot;nofollow&quot;&gt;waterproofing services  &lt;/a&gt;]]></description>
		<content:encoded><![CDATA[<p>This is awesome. Thank you. <a href="https://www.phillyfoundationrepair.com/waterproofing-philadelphia-pa.html/" rel="nofollow">waterproofing services  </a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rikard</title>
		<link>https://www.webmaster-source.com/2012/07/05/checking-the-status-of-a-minecraft-server-with-php/#comment-39013</link>
		<dc:creator><![CDATA[Rikard]]></dc:creator>
		<pubDate>Wed, 09 Sep 2015 17:03:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmaster-source.com/?p=4730#comment-39013</guid>
		<description><![CDATA[So now i only wonder how do i get all to work the description is far from helping]]></description>
		<content:encoded><![CDATA[<p>So now i only wonder how do i get all to work the description is far from helping</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Themuddfamily</title>
		<link>https://www.webmaster-source.com/2012/07/05/checking-the-status-of-a-minecraft-server-with-php/#comment-38929</link>
		<dc:creator><![CDATA[Themuddfamily]]></dc:creator>
		<pubDate>Wed, 04 Jun 2014 16:45:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmaster-source.com/?p=4730#comment-38929</guid>
		<description><![CDATA[This is not an error I&#039;m guessing you print_r&#039;d it.]]></description>
		<content:encoded><![CDATA[<p>This is not an error I&#8217;m guessing you print_r&#8217;d it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jayden</title>
		<link>https://www.webmaster-source.com/2012/07/05/checking-the-status-of-a-minecraft-server-with-php/#comment-38928</link>
		<dc:creator><![CDATA[jayden]]></dc:creator>
		<pubDate>Sat, 31 May 2014 03:03:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmaster-source.com/?p=4730#comment-38928</guid>
		<description><![CDATA[i get this errormsg:

MCServerStatus Object ( [server] =&gt; Array ( [url] =&gt; thedarkage.nl [port] =&gt; 25565 ) [online] =&gt; 1 [motd] =&gt; [online_players] =&gt; [max_players] =&gt; [error] =&gt; Cannot retrieve server info. ) it is a 1.7 minecraft server(not mine using it as test) did protcal change? please make a new one if it has]]></description>
		<content:encoded><![CDATA[<p>i get this errormsg:</p>
<p>MCServerStatus Object ( [server] =&gt; Array ( [url] =&gt; thedarkage.nl [port] =&gt; 25565 ) [online] =&gt; 1 [motd] =&gt; [online_players] =&gt; [max_players] =&gt; [error] =&gt; Cannot retrieve server info. ) it is a 1.7 minecraft server(not mine using it as test) did protcal change? please make a new one if it has</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amma Rany</title>
		<link>https://www.webmaster-source.com/2012/07/05/checking-the-status-of-a-minecraft-server-with-php/#comment-38914</link>
		<dc:creator><![CDATA[Amma Rany]]></dc:creator>
		<pubDate>Sat, 05 Apr 2014 16:03:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmaster-source.com/?p=4730#comment-38914</guid>
		<description><![CDATA[Hi . very pleased to see the explanation. waiting for other interesting posts at a time when that will come.
From &lt;a href=&quot;http://www.woodstone.nu/salive&quot; rel=&quot;nofollow&quot;&gt;bvba Woodstone&lt;/a&gt;]]></description>
		<content:encoded><![CDATA[<p>Hi . very pleased to see the explanation. waiting for other interesting posts at a time when that will come.<br />
From <a href="http://www.woodstone.nu/salive" rel="nofollow">bvba Woodstone</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: HoyLRam</title>
		<link>https://www.webmaster-source.com/2012/07/05/checking-the-status-of-a-minecraft-server-with-php/#comment-38912</link>
		<dc:creator><![CDATA[HoyLRam]]></dc:creator>
		<pubDate>Mon, 31 Mar 2014 11:45:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmaster-source.com/?p=4730#comment-38912</guid>
		<description><![CDATA[Very Very Very Thank You Coding ;)]]></description>
		<content:encoded><![CDATA[<p>Very Very Very Thank You Coding <img src="https://www.webmaster-source.com/wp-includes/images/smilies/icon_wink.gif" alt=";)" class="wp-smiley" /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BrAiNee</title>
		<link>https://www.webmaster-source.com/2012/07/05/checking-the-status-of-a-minecraft-server-with-php/#comment-37860</link>
		<dc:creator><![CDATA[BrAiNee]]></dc:creator>
		<pubDate>Tue, 17 Sep 2013 16:32:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmaster-source.com/?p=4730#comment-37860</guid>
		<description><![CDATA[Hi i found this Script on a forum but its the same :) Its the best what i found and i love it its smal simple and doesnt output bad values or other unusefull words. thx for this script.

BrAiNee]]></description>
		<content:encoded><![CDATA[<p>Hi i found this Script on a forum but its the same <img src="https://www.webmaster-source.com/wp-includes/images/smilies/icon_smile.gif" alt=":)" class="wp-smiley" /> Its the best what i found and i love it its smal simple and doesnt output bad values or other unusefull words. thx for this script.</p>
<p>BrAiNee</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonas</title>
		<link>https://www.webmaster-source.com/2012/07/05/checking-the-status-of-a-minecraft-server-with-php/#comment-37198</link>
		<dc:creator><![CDATA[Jonas]]></dc:creator>
		<pubDate>Tue, 16 Jul 2013 23:47:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmaster-source.com/?p=4730#comment-37198</guid>
		<description><![CDATA[Hello, I found some issus, and that is when the server dosent have the port 25565, like one of main it have 25515 and i am not allowed to chanche it...
so when i type the server ip and port in, it is comming an error &quot;Warning: stream_socket_client() [function.stream-socket-client]: unable to connect to tcp://serveraddres.com:25515:25565 (Connection timed out) in /home/techprey/public_html/demo/MCServerStatus/Minecraft/Stats.php on line 9

Fatal error: Call to undefined function Minecraft\StatsException() in /home/techprey/public_html/demo/MCServerStatus/Minecraft/Stats.php on line 12&quot;
as you might see the server address is &quot;tcp://serveraddres.com:25515:25565 &quot; when it shuld be &quot;tcp://serveraddres.com:25515&quot;... how can i fix that ?]]></description>
		<content:encoded><![CDATA[<p>Hello, I found some issus, and that is when the server dosent have the port 25565, like one of main it have 25515 and i am not allowed to chanche it&#8230;<br />
so when i type the server ip and port in, it is comming an error &#8220;Warning: stream_socket_client() [function.stream-socket-client]: unable to connect to <a href='tcp://serveraddres.com:25515:25565' rel='nofollow'>tcp://serveraddres.com:25515:25565</a> (Connection timed out) in /home/techprey/public_html/demo/MCServerStatus/Minecraft/Stats.php on line 9</p>
<p>Fatal error: Call to undefined function Minecraft\StatsException() in /home/techprey/public_html/demo/MCServerStatus/Minecraft/Stats.php on line 12&#8243;<br />
as you might see the server address is &#8220;tcp://serveraddres.com:25515:25565 &#8221; when it shuld be &#8220;tcp://serveraddres.com:25515&#8243;&#8230; how can i fix that ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Complete Newb</title>
		<link>https://www.webmaster-source.com/2012/07/05/checking-the-status-of-a-minecraft-server-with-php/#comment-37150</link>
		<dc:creator><![CDATA[Complete Newb]]></dc:creator>
		<pubDate>Wed, 10 Jul 2013 13:16:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmaster-source.com/?p=4730#comment-37150</guid>
		<description><![CDATA[Hello, I&#039;ve managed to get your script working with NearlyFreeSpeech, but I can&#039;t seem to catch the exception, when the server is down (it works fine with the server is up). I&#039;ve placed it in a try/catch block:

        try {
        if($statsmc-&gt;is_online) 
        {
          //whatever
        } else {
          //whatever
        }
        catch (StatsException $e) {
        // display error message
        }

However, it just throws an error with a FPD: 

Fatal error: Uncaught exception &#039;Minecraft\StatsException&#039; with message &#039;Could not connect to the Minecraft server.&#039;

How would I catch this?]]></description>
		<content:encoded><![CDATA[<p>Hello, I&#8217;ve managed to get your script working with NearlyFreeSpeech, but I can&#8217;t seem to catch the exception, when the server is down (it works fine with the server is up). I&#8217;ve placed it in a try/catch block:</p>
<p>        try {<br />
        if($statsmc-&gt;is_online)<br />
        {<br />
          //whatever<br />
        } else {<br />
          //whatever<br />
        }<br />
        catch (StatsException $e) {<br />
        // display error message<br />
        }</p>
<p>However, it just throws an error with a FPD: </p>
<p>Fatal error: Uncaught exception &#8216;Minecraft\StatsException&#8217; with message &#8216;Could not connect to the Minecraft server.&#8217;</p>
<p>How would I catch this?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/


Served from: www.webmaster-source.com @ 2026-04-16 15:37:26 by W3 Total Cache
-->