$id=$_GET['id'];
$ch = curl_init();
curl_setopt ($ch, CURLOPT_URL, "http://地址=".$id."");
curl_setopt ($ch, CURLOPT_REFERER, "http://地址");
curl_exec ($ch);
curl_close ($ch);
以上代码获取到的地址是个js地址,地址如下:
{"url":"http://地址也是js"}
下面这个地址依然是个js地址格式也一样如下要取这个js地址输出后url地址
{"url":"http://地址实际地址也就是需要的地址"}
请问这完整代码该怎么写才对
数据分析师2017-09-30 23:48:15
curl How to get the two JSOM data in the address by forging an address - PHP Chinese website Q&A - curl How to get the two JSOM data in the address by forging an address - PHP Chinese website Q&A
Take a look around and learn.