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

search for in the

stream_get_wrappers> <stream_get_meta_data
[edit] Last updated: Fri, 17 May 2013

view this page in

stream_get_transports

(PHP 5)

stream_get_transportsRecuperar la lista de transportes de socket registrados

Descripción

array stream_get_transports ( void )

Devuelve una matriz indexada que contiene el nombre de todos los transportes de socket disponibles en el sistema en ejecución.

Valores devueltos

Devuelve una matriz indexada de nombres de transportes de socket.

Ejemplos

Ejemplo #1 Usar stream_get_transports()

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

El resultado del ejemplo sería algo similar a:

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

Ver también



add a note add a note User Contributed Notes stream_get_transports - [1 notes]
up
-1
abschipriota-varios0001 at yahoo dot com dot mx
5 years ago
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.

 
show source | credits | sitemap | contact | advertising | mirror sites