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
설명
array stream_get_transports
( void
)
Returns an indexed array containing the name of all socket transports available on the running system.
반환값
Returns an indexed array of socket transports names.
예제
Example #1 Using stream_get_transports()
<?php
$xportlist = stream_get_transports();
print_r($xportlist);
?>
위 예제의 출력 예시:
Array ( [0] => tcp [1] => udp [2] => unix [3] => udg )
참고
- stream_get_filters() - Retrieve list of registered filters
- stream_get_wrappers() - Retrieve list of registered streams
stream_get_transports
abschipriota-varios0001 at yahoo dot com dot mx
24-Apr-2008 12:48
24-Apr-2008 12:48
