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

search for in the

stream_get_wrappers> <stream_get_meta_data
Last updated: Fri, 13 Nov 2009

view this page in

stream_get_transports

(PHP 5)

stream_get_transports登録されたソケットのトランスポートの一覧を取得する

説明

array stream_get_transports ( void )

スクリプトを走らせているシステムにおいて利用可能なソケットのトランスポートのリストを配列として返します。

返り値

ソケットのトランスポート名の配列を返します。

例1 stream_get_transports() を使った例

<?php
$xportlist 
stream_get_transports();
print_r($xportlist);
?>

上の例の出力は、 たとえば以下のようになります。

Array (
  [0] => tcp
  [1] => udp
  [2] => unix
  [3] => udg
)

参考



add a note add a note User Contributed Notes
stream_get_transports
abschipriota-varios0001 at yahoo dot com dot mx
24-Apr-2008 12:48
If you can't get the ssl protocol as a registered transport protocol even though you has add the extension=php_openssl.dll line on php.ini, maybe you haven't the libeay32.dll and / or ssleay32.dll files on your installation or in system32 folder.

stream_get_wrappers> <stream_get_meta_data
Last updated: Fri, 13 Nov 2009
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites