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> <Funciones de cURL
[edit] Last updated: Fri, 11 May 2012

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.

Parámetros

ch

El recurso cURL devuelto por curl_init().

Valores devueltos

No devuelve ningún valor.

Ejemplos

Ejemplo #1 Inicializar una nueva sesión CURL y capturar 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 y se envía al navegador
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.

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