Рекурсивный акроним словосочетания «PHP: Hypertext Preprocessor»
Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетили 17116 программистов и 1833 робота. Сейчас ищут 1664 программиста ...
Net_Socket::connect()
Вернуться к: Net_Socket
Net_Socket::connect()
Net_Socket::connect() – connects to a server
Synopsis
require_once 'Net/Socket.php';
boolean Net_Socket::connect ( string $addr , integer $port , boolean $persistent = null , integer $timeout = null , array $options = null )
Connect to the specified port. If called when the socket is already connected, it disconnects and connects again.
Return value
boolean - Returns TRUE on success, PEAR_Error on failure.
Throws
Error code | Error message | Reason | Solution |
---|---|---|---|
every | every | The connection could not be established because
| Check for server name, the connection to the net and possible firewalls on client or server side |
Note
This function can not be called statically.
Вернуться к: Net_Socket