Manual
do
PHP
Anterior
Próxima
fsockopen
fsockopen -- Open Internet or Unix domain socket connection
Description
int
fsockopen
( string hostname, int port [, int errno [, string errstr [, float timeout]]])
Nota
:
Exemplo
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.
Exemplo
2
.
Atenção
Nota
:
See also
pfsockopen()
,
socket_set_blocking()
,
socket_set_timeout()
,
fgets()
,
fgetss()
,
fputs()
,
fclose()
,
feof()
, and the
Curl extension
.
Anterior
Principal
Próxima
Acima