★ wanayoo — archive 1999 http://www.php.net/manual/ja/function.curl-init.phpNouvelle recherche | Portail wanayoo

PHP Home Page

Manual Table of Contents
Up to CURL
Quick Reference
English version of this pageGerman version of this pageItalian version of this pageFrench version of this pageHungarian version of this page
CURL
* curl_init
* curl_setopt
* curl_exec
* curl_close
* curl_version
Manual: curl_init
View the source code for this pageSearch the site



Previous page
 CURL
 Updated
Sat, 12 Aug 2000
curl_setopt 
Next page


curl_init

(PHP4 CVS only)

curl_init -- CURLセッションを初期化

説明

int curl_init ([string url])

curl_init()は新規セッションを初期化し、CURLハ ンドルを返します。このハンドルは、関数 curl_setopt(), curl_exec(), curl_close() で使用します。オプションのパラメー タ urlを指定した場合、オプション CURLOPT_URLがそのパラメータの値に設定されます。関数 curl_setopt()により、この値をマニュアルで設定 することも可能です。

例 1. 新規CURLセッションを初期化し、Webページを取得する


<?php
$ch = curl_init();

curl_setopt ($ch, CURLOPT_URL, "http://www.zend.com/");
curl_setopt ($ch, CURLOPT_HEADER, 0);

curl_exec ($ch);

curl_close ($ch);
?>
      

curl_close(), curl_setopt()も参照下さい。


 About Notes


Previous page
 CURL
 Updated
Sat, 12 Aug 2000
curl_setopt 
Next page





Who's responsible for this?
Top of this page

Site
Hosting:



Located in
United States
Elements of this website are subject to copyright.
Questions about installing or using PHP should be directed to one of the mailing lists.
Only questions about the website should be directed to webmaster@php.net.