title: PHP - Getting text from a text file and using them in a "loop"!
body: <p>Im new to php, and i really need some help with this script. I have a text file with names(serverlist.txt). The first line of code gets these names. I want it to get one name, put it in to the last bit of code(), Then repeat the process untill there are no lines of text in the serverlist.txt. </p>
  
  <p>Please help me. </p>
  
  <pre><code>    &lt;?php 
  $file = 'serverlist.txt';
  $content = "";
  if($handle = fopen($file, 'r')) {
      while(!feof($handle)) {
          $content .= fgets($handle);
              foreach($content as $cont) {
              }
      }
      fclose($handle);
  }
  
  
  
  ?&gt;
  
  &lt;html&gt;
  &lt;head&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;img src="http://minecraft.net/skin/&lt;?php 
  
  
  echo $cont; ?&gt;.png" alt=""&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>