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

		//Attempt to send the file
		return ssh2_scp_send($this->_conn_link, $local_filepath, $remote_filepath, $create_mode);
	}
public function send_file($local_filepath, $remote_filepath, $create_mode = 0644)
	{
		
		$local_filepath = $this->format_path($local_filepath);
		$remote_filepath = $this->format_path($remote_filepath);

		//Attempt to send the file
		return ssh2_scp_send($this->_conn_link, $local_filepath, $remote_filepath, $create_mode);
	}
public function send_file ( $ local_filepath , $ remote_filepath , $ create_mode = 0644 ) { $ local_filepath = $ this -> format_path ( $ local_filepath ) ; $ remote_filepath = $ this -> format_path ( $ remote_filepath ) ; //Attempt to send the file return ssh2_scp_send ( $ this -> _conn_link , $ local_filepath , $ remote_filepath , $ create_mode ) ; }
Sends a file to the remote server using scp

Attempts to send a file via SCP to the remote server currently connected to

@param $local_filepath string The path to the file to send
@param $remote_filepath string The path to the remote location to save the file
Sends a file to the remote server using scp