ftp_pure::_connect() –

You appear to be a bot. Output may be restricted

Description

Usage

ftp_pure::_connect( $host, $port );

Parameters

$host
( mixed ) required
$port
( mixed ) required

Returns

void

Source

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

1 to 10 of 10
  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;
  }
 

 View on GitHub View on Trac