socket_write

(PHP 4 >= 4.1.0)

socket_write -- Write to a socket

Description

int socket_write ( resource socket_des, string &buffer, int length)

Warning

This function is EXPERIMENTAL. The behaviour of this function, the name of this function, and anything else documented about this function may change in a future release of PHP without notice. Be warned and use this function at your own risk.

The function socket_write() writes to the socket socket_des from &buffer the number of bytes set by length.

See also socket_accept(), socket_bind(), socket_connect(), socket_listen(), socket_read(), socket_strerror(), and socket_get_status().