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

search for in the

http_get> <http_persistent_handles_count
[edit] Last updated: Fri, 25 May 2012

view this page in

http_persistent_handles_ident

(PECL pecl_http >= 1.5.0)

http_persistent_handles_ident持続ハンドルの ident を取得/設定する

説明

string http_persistent_handles_ident ([ string $ident ] )

持続ハンドルの ident を取得あるいは定義します。

パラメータ

ident

識別文字列。

返り値

成功した場合に以前の ident、 失敗した場合に FALSE を返します。

例1 http_persistent_handles_ident() の例

<?php
echo http_persistent_handles_ident("CUSTOM"), "\n";
echo 
http_persistent_handles_ident("MyApp1"), "\n";
http_get("http://www.example.com/");
print_r(http_persistent_handles_count());
?>

上の例の出力は以下となります。


GLOBAL
CUSTOM
stdClass Object
(
[http_request] => Array
(
[MyApp1] => Array
(
[used] => 0
[free] => 1
)

)

[http_request_datashare] => Array
(
[GLOBAL] => Array
(
[used] => 1
[free] => 0
)

)

[http_request_pool] => Array
(
)

)

参考



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

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