【发布时间】:2014-05-06 23:46:33
【问题描述】:
我想更改下面 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/');
【问题讨论】:
-
你是在问如何进行字符串连接?
标签: php json variables file-get-contents