PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

curl_copy_handle> <cURL 関数
Last updated: Fri, 05 Sep 2008

view this page in

curl_close

(PHP 4 >= 4.0.2, PHP 5)

curl_closecURL セッションを閉じる

説明

void curl_close ( resource $ch )

cURL セッションを閉じ、全てのリソースを開放します。 cURL ハンドル ch も削除されます。

パラメータ

ch

curl_init() が返す cURL ハンドル。

返り値

値を返しません。

例1 新しい cURL セッションの初期化とウェブページの取得

<?php
// 新しい cURL リソースを作成します
$ch curl_init();

// URL とその他のオプションを設定します
curl_setopt($chCURLOPT_URL"http://www.example.com/");
curl_setopt($chCURLOPT_HEADER0);

// URL を取得し、それをブラウザに渡します
curl_exec($ch);

// cURL リソースを閉じ、システムリソースを解放します
curl_close($ch);
?>



add a note add a note User Contributed Notes
curl_close
There are no user contributed notes for this page.

curl_copy_handle> <cURL 関数
Last updated: Fri, 05 Sep 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites