GC_Filesystem_SSH2::get_contents()

最后更新于:2021-11-27 20:19:30

GC_Filesystem_SSH2::get_contents( string$file)

Reads entire file into a string.

参数

$file

(string) (Required) Name of the file to read.

响应

(string|false) Read data on success, false if no temporary file could be opened, or if the file couldn’t be retrieved.

源文件

文件: gc-admin/includes/class-gc-filesystem-ssh2.php

	public function get_contents( $file ) {
		return file_get_contents( $this->sftp_path( $file ) );
	}