我想更改下面的URL中的1并传递从网站URL拉出的PHP变量.除了我在下面的URL file_get_contents中间使用变量工作时,我还有其他一切正常工作.
$listingstring = file_get_contents('http://example.com/1/lsitngs/');
$listingstring = file_get_contents('http://example.com/?variable/lsitngs/');
Run Code Online (Sandbox Code Playgroud)