ftp_pure::_connect

Advertisement

Syntax Syntax

ftp_pure::_connect( $host,  $port )

Source Source

File: wp-admin/includes/class-ftp-pure.php

	function _connect($host, $port) {
		$this->SendMSG("Creating socket");
		$sock = @fsockopen($host, $port, $errno, $errstr, $this->_timeout);
		if (!$sock) {
			$this->PushError('_connect','socket connect failed', $errstr." (".$errno.")");
			return FALSE;
		}
		$this->_connected=true;
		return $sock;
	}

Advertisement

Advertisement

Leave a Reply