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

search for in the

stream_get_wrappers> <stream_get_meta_data
Last updated: Fri, 10 Oct 2008

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);
?>

出力は以下のようになります。 注意: PHP のバージョンによって、トランスポートの数が増減することがあります。

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

stream_get_filters(), stream_get_wrappers() も参照ください。



add a note add a note User Contributed Notes
stream_get_transports
abschipriota-varios0001 at yahoo dot com dot mx
23-Apr-2008 05: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, 10 Oct 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites