PHPマニュアル/PEARマニュアル | ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot

http_persistent_handles_ident - 持続ハンドルの ident を取得/設定する | JavaScript入門&応用&リファレンスなら「JavaScriptist」

  

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
(
)

)

参考



フォーラムで「http_persistent_handles_ident - 持続ハンドルの ident を取得/設定する」について話す
各種マニュアル: PHPマニュアル | PEARマニュアル | Smarty(英語)マニュアル | PHP-GTKマニュアル | http_persistent_handles_ident - 持続ハンドルの ident を取得/設定する」をGoogle検索
copyright © 1997-2012 PHP ドキュメント作成グループ(ライセンス). provided by php spot. マニュアル: