title: php code server status?
body: <p>I have problem with this code
  I want the output file to get the server status, but a part of the code is not complete</p>
  
  <p><strong>i upload file here but not work and no show status of server :/</strong></p>
  
  <p><a href="http://nk24.ir/status.php" rel="nofollow">http://nk24.ir/status.php</a></p>
  
  <p>Next question: I do not have access to the source files
  <code>vpnm.me/includes/get-status.php</code> Can I get file information in my host...</p>
  
  <p><code>status.html</code> connect to <code>status.php</code> Available at my host and <code>status.php</code> connect to <code>vpnm.me/includes/get-status.php</code> :)</p>
  
  <p>If the source is to Receipt server status secret And information can be Receipt on my server.</p>
  
  <p>I am grateful for your help</p>
  
  <p>my code :</p>
  
  <pre><code>&lt;div id="servers" class="modal" &gt;
  &lt;h3&gt;Status servers&lt;/h3&gt;
      &lt;table&gt;
          &lt;tr&gt;
              &lt;td class="col1"&gt;Server Location&lt;/td&gt;
              &lt;td&gt;VPN Server&lt;/td&gt;
              &lt;td&gt;HTTPS Server&lt;/td&gt;
              &lt;td&gt;Status servers&lt;/td&gt; 
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td class="col1"&gt;&lt;img src="images/flags/us.png" class="flag" alt="USA" /&gt;USA CA : &lt;/td&gt;
              &lt;td class="col2"&gt;8&lt;/td&gt;
              &lt;td class="col2"&gt;8&lt;/td&gt;
              &lt;td id="server_us"&gt;&lt;/td&gt; 
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td class="col1"&gt;&lt;img src="images/flags/us.png" class="flag" alt="USA" /&gt;USA DC : &lt;/td&gt;
              &lt;td class="col2"&gt;4&lt;/td&gt;
              &lt;td class="col2"&gt;4&lt;/td&gt;
              &lt;td id="server_us3"&gt;&lt;/td&gt; 
          &lt;/tr&gt;
  
      &lt;/table&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>$.get('http://vpnm.me/includes/get-status.php', function(res){
  
  for (server in res) {
      var status;
      var color;
      if (res[server]== 'down') { status= "Offline"; color="#FF0000"; }
      else if (res[server]== 'problem') { status= "Problem"; color="#FEF103"; }
      else { status= "Online"; color="#00CC00"; }
  
      $("#server_"+server).html(status).css('color', color);
  }
  
  }, "json");
  </code></pre>