title: PHP get_file_contents with FTP server file
body: <p>I making something and i need a bit of help. 
  First i using FTP informations to connect to server and get some file something like this:</p>
  
  <pre><code>$ftp_ip = $info['ftp_ip'];
  $ftp_user = $info['ftp_user'];
  $ftp_password = $info['ftp_password'];
  
  $filename = "ftp://$ftp_user:$ftp_password@$ftp_ip/cstrike/addons/amxmodx/configs/serverlist.ini";  
  
  $file_headers = file_get_contents($filename);
  if($file_headers == ""){
   echo " error ";        
  } else {
  
  $lines = file($filename);
  
  foreach ($lines as $line_num =&gt; $line) {
     if (!preg_match("/^(\;|\s)/",$line)) echo nl2br($line);      
  }
  
  }
  </code></pre>
  
  <p>The file 'serverlist.ini' looks like this :</p>
  
  <pre><code>; Menu configuration file
  ; File location: $moddir/addons/amxmodx/configs/configs.ini
  ; To use with Commands Menu plugin
  
  ; NOTE: By default in all settings the access level is set to "u".
  ;       However you can change that, to limit the access to some settings.
  
  ; Commands Menu:
  ; &lt; description &gt; &lt; command &gt; &lt; flags &gt; &lt; access level &gt;
  ; "a" - execute from server console
  ; "b" - execute from admin console
  ; "c" - execute on all clients
  ; "d" - back to menu when executed
  
  [Extreme ProGaming Fun]
  address=77.105.36.100
  port=27028
  noauto=0
  nodisplay=0
  
  
  [Extreme ProGaming Knife]
  address=77.105.36.102
  port=27010
  noauto=0
  nodisplay=0
  
  
  [Extreme ProGaming DeatMatch]
  address=77.105.36.103
  port=27026
  noauto=0
  nodisplay=0
  </code></pre>
  
  <p>With this PHP code bellow i get something like this:</p>
  
  <pre><code>[Extreme ProGaming Fun]
  address=77.105.36.100
  port=27028
  noauto=0
  nodisplay=0
  [Extreme ProGaming Knife]
  address=77.105.36.102
  port=27010
  noauto=0
  nodisplay=0
  [Extreme ProGaming DeatMatch]
  address=77.105.36.103
  port=27026
  noauto=0
  nodisplay=0
  </code></pre>
  
  <p>And now i need to get on other file just to get something like this from this serverlist.ini via get_file_contents :
  From serverlist.ini file to get just address and port in format adress:port</p>
  
  <pre><code>1. 77.105.36.100:27028  // Extreme ProGaming Fun
  2. 77.105.36.102:27010  // Extreme ProGaming Knife
  3. 77.105.36.103:27026  // Extreme ProGaming DeatMatch
  </code></pre>
  
  <p>Sorry for my bad english i think u guys understand what i need :)</p>