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, 20 May 2011

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

Example #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
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.

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