Popis
int
curl_init ( [string url])
curl_init() inicializuje novou session a vracφ CURL handle
pro pou╛itφ s funkcemi curl_setopt(),
curl_exec() a curl_close(). Pokud je
p°φtomen voliteln² argument url, CURLOPT_URL se nastavφ
na hodnotu tohoto argumentu. M∙╛ete to ud∞lat i ruΦn∞, pomocφ funkce
curl_setopt().
P°φklad 1.
Inicializace novΘ CURL session a sta╛enφ webovΘ strßnky
<?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);
?> |
|
Viz takΘ: curl_close(),
curl_setopt()