Use double quotes for your string so you can place a variable inside of it and have it interpolated:
$listingstring = file_get_contents("http://example.com/$variable/lsitngs/");
You can also use concatenation:
$listingstring = file_get_contents('http://example.com/'.$variable.'/lsitngs/');