title: How can I put a PHP Variable in file_get_contents URL String?
body: <p>I would like change the 1 in the URL below and pass PHP variable pulled from the website URL. I have everything else working except I'm having trouble getting a variable working in the middle of the URL file_get_contents below.</p>
  
  <pre><code>$listingstring = file_get_contents('http://example.com/1/lsitngs/');
  
  $listingstring = file_get_contents('http://example.com/?variable/lsitngs/');
  </code></pre>