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

search for in the

curl_copy_handle> <cURL Funktionen
[edit] Last updated: Sat, 07 Jan 2012

view this page in

curl_close

(PHP 4 >= 4.0.2, PHP 5)

curl_closeEine cURL-Session beenden

Beschreibung

void curl_close ( resource $ch )

Diese Funktion beendet eine cURL-Session und gibt alle Resourcen frei. Der cURL-Handle ch wird ebenfalls gelöscht.

Parameter-Liste

ch

Ein von curl_init() zurückgegebenes cURL-Handle.

Rückgabewerte

Es wird kein Wert zurückgegeben.

Beispiele

Beispiel #1 Initialisierung einer neuen cURL-Session und das abrufen einer Webseite

<?php
// create a new cURL resource
$ch curl_init();

// set URL and other appropriate options
curl_setopt($chCURLOPT_URL"http://www.example.com/");
curl_setopt($chCURLOPT_HEADER0);

// grab URL and pass it to the browser
curl_exec($ch);

// close cURL resource, and free up system resources
curl_close($ch);
?>

Siehe auch



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

 
show source | credits | sitemap | contact | advertising | mirror sites