|
Appendix Q. List of Supported Socket TransportsTable of Contents The following is a list of the various URL style socket transports that PHP has built-in for use with the streams based socket functions such as fsockopen(), and stream_socket_client(). These transports do not apply to the Sockets Extension. For a list of transports installed in your version of PHP use stream_get_transports().
PHP 3, PHP 4, PHP 5.
Note:
If no transport is specified,
Internet Domain sockets expect a port number in addition to a target address. In the case of fsockopen() this is specified in a second parameter and therefore does not impact the formatting of transport URL. With stream_socket_client() and related functions as with traditional URLs however, the port number is specified as a suffix of the transport URL delimited by a colon.
IPv6 numeric addresses with port numbers:
In the second example above, while the IPv4 and hostname
examples are left untouched apart from the addition of
their colon and portnumber, the IPv6 address is wrapped in
square brackets:
The
Table Q.1. Context options for ssl:// and tls:// transports (since PHP 4.3.2)
|
Change LanguageHistory of PHP and related projects Migrating from PHP 5.1.x to PHP 5.2.x Migrating from PHP 5.0.x to PHP 5.1.x Migrating from PHP 4 to PHP 5 Migrating from PHP 3 to PHP 4 Migrating from PHP/FI 2 to PHP 3 Debugging PHP Configure options php.ini directives List of Supported Timezones Extension Categorization List of Function Aliases List of Reserved Words List of Resource Types List of Supported Protocols/Wrappers List of Available Filters List of Supported Socket Transports PHP type comparison tables List of Parser Tokens Userland Naming Guide |