0
我需要在我的CURL脚本中运行sudo ip netns exec protected curl
。CURL命令行到PHP?
我不知道如何在PHP中做到这一点。
我在程式码中使用exec()
如下无济于事:
$options = array(
CURLOPT_RETURNTRANSFER => true,
CURLOPT_REFERER => $URL,
CURLOPT_HTTPHEADER => array(
'Accept-Language: ' . $Params
)
);
$ch = curl_init($ReceiverURL);
curl_setopt_array($ch, $options);
$content = curl_exec($ch);
curl_close($ch);
return $content;
什么我做错了,我怎么能实现呢?