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 Functions
Last updated: Fri, 22 Aug 2008

view this page in

curl_close

(PHP 4 >= 4.0.2, PHP 5)

curl_closeCierra una sesión CURL

Descripción

void curl_close ( resource $ch )

Esta función cierra una sesión CURL y libera todos sus recursos. El recurso CURL, ch , también es eliminado.

Example #1 Inicializar una nueva sesión CURL y obtener una página web

<?php
// Se crea un manejador CURL
$ch curl_init();

// Se establece la URL y algunas opciones
curl_setopt($chCURLOPT_URL"http://www.example.com/");
curl_setopt($chCURLOPT_HEADER0);

// Se obtiene la URL indicada
curl_exec($ch);

// Se cierra el recurso CURL y se liberan los recursos del sistema
curl_close($ch);
?>

Ver también



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

curl_copy_handle> <cURL Functions
Last updated: Fri, 22 Aug 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites