PHP - phdfs class



Syntax

phdfs { /* Properties */ static $host; static $port; /* Methods */ public bool connect( void ) public __construct( string $ip , string $port ) public bool copy( string $source_file , string $destination_file ) public bool create_directory( string $path ) public bool delete( string $path ) public void __destruct( void ) public bool disconnect( void ) public bool exists( string $path ) public array file_info( string $path ) public array list_directory( string $path [, int $level = 0 ] ) public string read( string $path [, int $length = 0 ] ) public bool rename( string $old_path , string $new_path ) public int tell( string $path [, int $read_length = 1024 ] ) public bool write( string $path , string $buffer [, int $mode = 0 ] ) }

phdfs::connect() −

The phdfs:: connect() function can return true on success, or false on failure.

Syntax

public bool phdfs::connect( void )

phdfs::__construct() −

Syntax

public phdfs::__construct( string $ip , string $port )

phdfs::copy() −

The phdfs:: copy() function can return true on success, or false on failure.

Syntax

public bool phdfs::copy( string $source_file , string $destination_file )

phdfs::create_directory() −

The phdfs::create_directory() function can return true on success, or false on failure.

Syntax

public bool phdfs::create_directory( string $path )

phdfs::delete() −

The phdfs:: delete() function can return true on success, or false on failure.

Syntax

public bool phdfs::delete ( string $path )

phdfs::__destruct() −

The phdfs::__destruct() function doesn't return any value.

Syntax

public void phdfs::__destruct( void )

phdfs::disconnect():-

The phdfs:: disconnect() function can return true on success, or false on failure.

Syntax

public bool phdfs::disconnect( void )

phdfs::exists() −

The phdfs:: exists() function can return true on success, or false on failure.

Syntax

public bool phdfs::exists( string $path )

phdfs::file_info() −

The phdfs::file_info() function can return an array on success, or false on failure.

Syntax

public array phdfs::file_info( string $path )

phdfs::list_directory() −

The phdfs::list_directory() function can return an array on success, or false on failure.

Syntax

public array phdfs::list_directory( string $path [, int $level = 0 ] )

phdfs::read() −

Syntax

public string phdfs::read( string $path [, int $length = 0 ] )

phdfs::rename() −

The phdfs:: rename() function can return true on success, or false on failure.

Syntax

public bool phdfs::rename( string $old_path , string $new_path )

phdfs::tell() −

Syntax

public int phdfs::tell( string $path [, int $read_length = 1024 ] )

phdfs::write() −

The phdfs:: write() function can return true on success, or false on failure.

Syntax

public bool phdfs::write( string $path , string $buffer [, int $mode = 0 ] )
Advertisements