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_transportsRetrieve list of registered socket transports

Descrição

array stream_get_transports ( void )

Returns an indexed array containing the name of all socket transports available on the running system.

Valor Retornado

Returns an indexed array of socket transports names.

Exemplos

Exemplo #1 Using stream_get_transports()

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

O exemplo acima irá imprimir algo similar a:

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

Veja Também



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