close

 

<?php
// 創建一個新cURL資源
$ch = curl_init();

// 設置URL和相應的選項
$options = array(CURLOPT_URL => 'http://www.example.com/',
CURLOPT_HEADER => false
);

curl_setopt_array($ch, $options);

// 抓取URL並把它傳遞給瀏覽器
curl_exec($ch);

// 關閉cURL資源,並且釋放系統資源
curl_close($ch);
?>

arrow
arrow
    全站熱搜

    stockwfj3 發表在 痞客邦 留言(0) 人氣()