src/Net/FTP/Connection.php
public function connect( $host, $port = 21, $timeout = 10 )
	{
		$resource	= @ftp_connect( $host, $port, $timeout );
		if( !$resource )
			return FALSE;
		$this->host	= $host;
		$this->port	= $port;
		$this->resource	= $resource;
		return TRUE;
	}
public function connect( $host, $port = 21, $timeout = 10 )
	{
		$resource	= @ftp_connect( $host, $port, $timeout );
		if( !$resource )
			return FALSE;
		$this->host	= $host;
		$this->port	= $port;
		$this->resource	= $resource;
		return TRUE;
	}
public function connect ( $ host , $ port = 21 , $ timeout = 10 ) { $ resource = @ ftp_connect ( $ host , $ port , $ timeout ) ; if ( ! $ resource ) return FALSE ; $ this -> host = $ host ; $ this -> port = $ port ; $ this -> resource = $ resource ; return TRUE ; }
Opens Connection to FTP Server.
@access		public
@param		string		$host			Host Name
@param		integer		$port			Service Port
@param		integer		$timeout		Timeout in Seconds
@return		boolean
Opens Connection to FTP Server .