title: file_get_contents with spaces in URL
body: <p>I have an issue where even if I replace the spaces to %20 and get this content the ultimate url the browser gets turns the "%20" into "%2520"</p>
  
  <p>Here's my code, any suggestions to get this to work? it seems easy but I'm stuck :/</p>
  
  <pre><code>&lt;?php
  //$_GET['song'] will contain a song name with spaces
  $song = str_replace(array("%20", "&amp;", "?" , "/"), array(" ", "", "", ""), $_GET['song']);
  
  // I use this to check how the GET 'song' looks after the str_replace
  $list = "http://www.lyrdb.com/lookup.php?q=" . $song . "&amp;for=fullt";
  echo "list url is " . $list . "&lt;hr&gt;";
  
  $content = file_get_contents("http://www.lyrdb.com/lookup.php?q=" . str_replace(" ", "%20", $song) . "&amp;for=fullt");
  
  echo $content;
  ?&gt;
  </code></pre>
  
  <p>if you go to <a href="http://webservices.lyrdb.com/lookup.php?q=red%20hot%20chili%20peppers&amp;for=fullt" rel="noreferrer">http://webservices.lyrdb.com/lookup.php?q=red%20hot%20chili%20peppers&amp;for=fullt</a> The result should output a list of lyric codes.</p>
  
  <p>When i go to my website /?song=red hot chili peppers  , it too converts spaces to %20 's but if it seems the browser converts the %'s to %25.</p>
  
  <p>Can someone help me out?</p>