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, 22 Aug 2008

view this page in

stream_get_transports

(PHP 5)

stream_get_transportsRetrieve list of registered socket transports

Description

array stream_get_transports ( void )

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

Example #1 Using stream_get_transports()

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

Output will be similar to the following. Note: there may be more or fewer transports in your version of PHP.

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

See also stream_get_filters(), and stream_get_wrappers().



add a note add a note User Contributed Notes
stream_get_transports
Anonymous
02-Aug-2008 08:34
stream_get_transports() could return (i got this on a linux PHP Version 5.2.0-8+etch10 )

Array
(
   [0] => tc
   [1] => ud
   [2] => uni
   [3] => ud
   [4] => ss
   [5] => sslv
   [6] => sslv
   [7] => tl
)

instead of

Array
(
   [0] => tcp
   [1] => udp
   [2] => unix
   [3] => udg
   [4] => ssl
   [5] => sslv3
   [6] => sslv2
   [7] => tls
)
abschipriota-varios0001 at yahoo dot com dot mx
24-Apr-2008 08: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, 22 Aug 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites