您好我有这个PHP代码
<?php
/**
* Initialize the cURL session
*/
$ch = curl_init();
/**
* Set the URL of the page or file to download.
*/
curl_setopt($ch, CURLOPT_URL,
'https://website/aaa');
/**
* Create a new file
*/
$fp = fopen('index.html', 'w');
/**
* Ask cURL to write the contents to a file
*/
curl_setopt($ch, CURLOPT_FILE, $fp);
/**
* Execute the cURL session
*/
curl_exec ($ch);
/**
* Close cURL session and file
*/
curl_close ($ch);
fclose($fp);
?>
我想从这个网站获得特定的div(使用html dom)
但是怎么样? 请记住 Iam非常初学PHP程序员请完整解释。
谢谢:X