dv1369截图:一个PHP程序看不懂,能逐句帮我解释下不?(没几行)

来源:百度文库 编辑:中科新闻网 时间:2024/04/29 05:17:30
$URL="www.mysite.com/test.php";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,"https://$URL");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "Data1=blah&Data2=blah");
curl_exec ($ch);
curl_close ($ch);
?>
哪些变量是可以修改的?

不好意思,中文的找不到呀.
Set an option for a CURL session identified by the ch parameter. option specifies which option to set, and value specifies the value for the option given.