Sep
17
2010
curl_copy_handle()

curl_copy_handle

(PHP 5)

curl_copy_handle --  Copy a cURL handle along with all of its preferences

Описание

resource curl_copy_handle ( resource ch )

This function copies a cURL handle, returning a new cURL handle with the same preferences.

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

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

// copy the handle
$ch2 curl_copy_handle($ch);

// grab URL (http://www..com/) and pass it to the browser
curl_exec($ch2);

// close curl resources, and free up system resources
curl_close($ch2);
curl_close($ch);
?>
 
 
 
Комментарии
Добавить новый Поиск
Оставить комментарий
Имя:
Email:
 
Веб-сайт:
Тема:
UBB-Код:
[b] [i] [u] [url] [quote] [code] [img] 
 
 
:angry::0:confused::cheer:B):evil::silly::dry::lol::kiss::D:pinch:
:(:shock::X:side::):P:unsure::woohoo::huh::whistle:;):s
:!::?::idea::arrow:
 
Пожалуйста, введите проверочный код, который Вы видите на картинке.
Powered by !JoomlaComment 3.26

3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."

 

Кто онлайн

Сейчас 28 гостей онлайн