src/SSHClient.php
public function receive_file($remote_filepath, $local_filepath)
	{
		$local_filepath = $this->format_path($local_filepath);
		$remote_filepath = $this->format_path($remote_filepath);

		return ssh2_scp_recv($this->_conn_link, $remote_filepath, $local_filepath);
	}
public function receive_file($remote_filepath, $local_filepath)
	{
		$local_filepath = $this->format_path($local_filepath);
		$remote_filepath = $this->format_path($remote_filepath);

		return ssh2_scp_recv($this->_conn_link, $remote_filepath, $local_filepath);
	}
public function receive_file ( $ remote_filepath , $ local_filepath ) { $ local_filepath = $ this -> format_path ( $ local_filepath ) ; $ remote_filepath = $ this -> format_path ( $ remote_filepath ) ; return ssh2_scp_recv ( $ this -> _conn_link , $ remote_filepath , $ local_filepath ) ; }
Requests a file from the remote server using SCP

Attempts to request and save a file from the currently connected to server using SCP.

@param $local_filepath string The path to save the file to on local server
@param $remote_filepath string The path to the remote file that is being requested
Requests a file from the remote server using SCP