public function site($command) {
		$this->connectIfNeeded();
		$this->param = "SITE " . $command;

		if (!ftp_site($this->handle, $command)) {
			throw new FtpException(
				Yii::t('gftp', 'Could not execute command "{command}" on "{host}"', [
					'host' => $this->host, '{command}' => $this->param
				])
			);
		}
	}
public function site($command) {
		$this->connectIfNeeded();
		$this->param = "SITE " . $command;

		if (!ftp_site($this->handle, $command)) {
			throw new FtpException(
				Yii::t('gftp', 'Could not execute command "{command}" on "{host}"', [
					'host' => $this->host, '{command}' => $this->param
				])
			);
		}
	}
public function site ( $ command ) { $ this -> connectIfNeeded ( ) ; $ this -> param = "SITE " . $ command ; if ( ! ftp_site ( $ this -> handle , $ command ) ) { throw new FtpException ( Yii :: t ( 'gftp' , 'Could not execute command "{command}" on "{host}"' , [ 'host' => $ this -> host , '{command}' => $ this -> param ] ) ) ; } }
Sends a SITE command request to the FTP server.

@param string    $command       FTP command (does not include <strong>SITE</strong> word).

@throws FtpException If command execution fails.
Sends a SITE command request to the FTP server .