<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1023550" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1023550</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/game-server-status-script#comment-1144811</link>
    <description> &lt;p&gt;Very nice.  I&#039;ll start playing around with that in just a few minitues, thanks for the help!&lt;/p&gt;
 </description>
     <pubDate>Thu, 22 Jan 2004 13:04:45 +0000</pubDate>
 <dc:creator>Lunch[box]</dc:creator>
 <guid isPermaLink="false">comment 1144811 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/game-server-status-script#comment-1144780</link>
    <description> &lt;p&gt;Assuming the server has an IP address, just ping the server on each pageload and if you get a response you know its working, otherwise you can safely assume that its probably not. That can easily be done from within a php script. I don&#039;t know if its the most efficiant way, but its one way of doing it I guess...&lt;/p&gt;
&lt;p&gt;Also, I did a little search on google and foud this snippet which might do what you want...&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;/* ---------------------------------------------- */&lt;br /&gt;/* ------------ BEGIN PHP SNIPPET ----------------*/&lt;br /&gt;/* ---------------------------------------------- */&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;preg_match&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;/^(http:\/\/)?([^\/]+)/i\&quot;, \&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$link_url&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;\&quot;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$matches&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$host&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$matches&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;;&lt;br /&gt;&lt;br /&gt;// get all but one segments of host name&lt;br /&gt;preg_match_all(\&quot;/\.([^\.\/]+)/\&quot;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$host&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$matches&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;&lt;br /&gt;// first element does not want the period()&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$matches&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;[0] = &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$matches&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;[0];&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$url_host&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = implode(&#039;&#039;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$matches&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;// echo \&quot;Domain: &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$url_host&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; - Host: &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$host&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;\&quot;;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$host&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = trim(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$host&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$noc&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = \&quot;\&quot;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$noc&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = fsockopen(\&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$host&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;\&quot;, 80, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$errno&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$errstr&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, 15); &lt;br /&gt;if(!&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$noc&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;) { &lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$noc&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = print(\&quot;&amp;lt;img border=0 src=\\&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;dead&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;gif&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;\\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot; align=\\&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;left&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;\\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$host&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; - Server not responding or very slow\&quot;); &lt;br /&gt;} else { &lt;br /&gt;fclose(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$noc&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;); &lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$noc&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = print(\&quot;&amp;lt;img border=0 src=\\&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;live&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;gif&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;\\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot; align=\\&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;left&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;\\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$host&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; - Server running normally\&quot;);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;(from &lt;a href=&quot;http://www.snipe.net/geek/toolz/server.php&quot; class=&quot;bb-url&quot;&gt;http://www.snipe.net/geek/toolz/server.php&lt;/a&gt;)&lt;/p&gt;
 </description>
     <pubDate>Wed, 21 Jan 2004 16:59:33 +0000</pubDate>
 <dc:creator>andy206uk</dc:creator>
 <guid isPermaLink="false">comment 1144780 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
