ң

curl_init

(PHP 4 >= 4.0.2)

curl_init - CURL-.

resource 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.example.com/"); curl_setopt ($ch, CURLOPT_HEADER, 0); curl_exec ($ch); curl_close ($ch); ?>

. : curl_close() , curl_setopt() .


ң
curl_getinfo curl_setopt