好的,现在我有了这个URL,它工作得很好:
$html_string = file_get_contents('https://www.123.com/' . $_GET["ticket"]);
我想做的是在URL之间插入$_GET。
我的意思是:
('https://www.123.com/' . $_GET["ticket"] /url-continues-here);
我什么都试过了,就是找不到一个不出错的方法。
先连接两个字符串,然后使用file_get_contents()
$html_string = 'https://www.123.com/' . $_GET["ticket"] . '/url-continues-here';
file_get_content($html_string);