亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

cURL crawling page simple web crawler

Simple use of cURL

<?php
    $curl=curl_init("http://www.baidu.com");
 //創(chuàng)建curl資源  
    curl_exec($curl);                                           //傳遞給瀏覽器
    curl_close($curl);                                            //關(guān)閉curl釋放資源
?>

Create a new php file and write it to the file.

Open cmd and enter the web directory.

QQ截圖20161105161206.png

Then you can use dir to view the folder contents

QQ截圖20161105161312.png

Select the edited php file

QQ截圖20161105161602.png

Then export

QQ截圖20161105161707.png

In the folder we can see baidu.html

QQ截圖20161105161541.png

The page that opens is as follows. This is our simplest crawler.

Continuing Learning
||
<?php $curl=curl_init("http://www.baidu.com"); //創(chuàng)建curl資源 curl_exec($curl); //傳遞給瀏覽器 curl_close($curl); //關(guān)閉curl釋放資源 ?>
submitReset Code