title: This piece of PHP code with Javascript / jQ... How?
body: <pre><code>&lt;?php
              if(strstr(file_get_contents('http://api.alphenweer.nl/api.php?apikey=Hier uw api sleutel&amp;server=servercheck'), '1')){
                  echo 'AlphenWeer.nl Api server is online en werkend.';
              }
              else
              {
                  echo 'AlphenWeer.nl Api server if offline of niet werkend, of uw API code klopt niet.';
              }
      ?&gt;
  </code></pre>
  
  <p>How can i do this with javascript and/or jQuery?
  I only know the AJAX part, but then check if 1 is in the data.. How?</p>