|
socket_strerror(PHP 4 >= 4.1.0, PHP 5) socket_strerror — Return a string describing a socket error Описание
string socket_strerror
( int $errno
)
socket_strerror() takes as its errno parameter a socket error code as returned by socket_last_error() and returns the corresponding explanatory text.
Возвращаемые значенияReturns the error message associated with the errno parameter. Примеры
Пример #1 socket_strerror() example
<?php The expected output from the above example (assuming the script is not run with root privileges): socket_bind() failed: reason: Permission denied Смотрите также
|
|