PHP
Käsikirja
Edellinen
Seuraava
fsockopen
fsockopen -- Open Internet or Unix domain socket connection
Description
int
fsockopen
( string hostname, int port [, int errno [, string errstr [, float timeout]]])
Huomaa
:
Esimerkki
1
.
fsockopen(
)
Example
The example below shows how to retrieve the day and time from the UDP service "daytime" (port 13) in your own machine.
Esimerkki
2
.
Varoitus
Huomaa
:
See also
pfsockopen()
,
socket_set_blocking()
,
socket_set_timeout()
,
fgets()
,
fgetss()
,
fputs()
,
fclose()
,
feof()
, and the
Curl extension
.
Edellinen
Alkuun
Seuraava
Ylös