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_transports
(PHP 5)
stream_get_transports — Retrieve list of registered socket transports
Opis
array stream_get_transports
( void
)
Returns an indexed array containing the name of all socket transports available on the running system.
Zwracane wartości
Returns an indexed array of socket transports names.
Przykłady
Przykład #1 Using stream_get_transports()
<?php
$xportlist = stream_get_transports();
print_r($xportlist);
?>
Powyższy przykład wyświetli coś podobnego do:
Array ( [0] => tcp [1] => udp [2] => unix [3] => udg )
Zobacz też:
- stream_get_filters() - Retrieve list of registered filters
- stream_get_wrappers() - Retrieve list of registered streams
abschipriota-varios0001 at yahoo dot com dot mx
23-Apr-2008 05:48
