original_string: public function exec($command) {
  		$this->connectIfNeeded();
  		$this->param = "SITE EXEC " . $command;
  		$exec = true;
  
  		if (!ftp_exec($this->handle, substr($command, strlen("SITE EXEC")))) {
  			throw new FtpException(
  				Yii::t('gftp', 'Could not execute command "{command}" on "{host}"', [
  					'host' => $this->host, '{command}' => $this->param
  				])
  			);
  		}
  	}
code: public function exec($command) {
  		$this->connectIfNeeded();
  		$this->param = "SITE EXEC " . $command;
  		$exec = true;
  
  		if (!ftp_exec($this->handle, substr($command, strlen("SITE EXEC")))) {
  			throw new FtpException(
  				Yii::t('gftp', 'Could not execute command "{command}" on "{host}"', [
  					'host' => $this->host, '{command}' => $this->param
  				])
  			);
  		}
  	}
code_tokens: public function exec ( $ command ) { $ this -> connectIfNeeded ( ) ; $ this -> param = "SITE EXEC " . $ command ; $ exec = true ; if ( ! ftp_exec ( $ this -> handle , substr ( $ command , strlen ( "SITE EXEC" ) ) ) ) { throw new FtpException ( Yii :: t ( 'gftp' , 'Could not execute command "{command}" on "{host}"' , [ 'host' => $ this -> host , '{command}' => $ this -> param ] ) ) ; } }
docstring: Sends a SITE EXEC command request to the FTP server.
  
  @param string    $command       FTP command (does not include <i>SITE EXEC</i> words).
  
  @throws FtpException If command execution fails.
docstring_tokens: Sends a SITE EXEC command request to the FTP server .