PHP - classe phdfs

Syntaxe

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() −

La fonction phdfs :: connect () peut renvoyer true en cas de succès, ou false en cas d'échec.

Syntaxe

public bool phdfs::connect( void )

phdfs::__construct() −

Syntaxe

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

phdfs::copy() −

La fonction phdfs :: copy () peut retourner true en cas de succès, ou false en cas d'échec.

Syntaxe

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

phdfs::create_directory() −

La fonction phdfs :: create_directory () peut retourner true en cas de succès, ou false en cas d'échec.

Syntaxe

public bool phdfs::create_directory( string $path )

phdfs::delete() −

La fonction phdfs :: delete () peut renvoyer true en cas de succès, ou false en cas d'échec.

Syntaxe

public bool phdfs::delete ( string $path )

phdfs::__destruct() −

La fonction phdfs :: __ destruct () ne renvoie aucune valeur.

Syntaxe

public void phdfs::__destruct( void )

phdfs::disconnect():-

La fonction phdfs :: disconnect () peut renvoyer true en cas de succès, ou false en cas d'échec.

Syntaxe

public bool phdfs::disconnect( void )

phdfs::exists() −

La fonction phdfs :: existe () peut renvoyer true en cas de succès, ou false en cas d'échec.

Syntaxe

public bool phdfs::exists( string $path )

phdfs::file_info() −

La fonction phdfs :: file_info () peut retourner un tableau en cas de succès, ou false en cas d'échec.

Syntaxe

public array phdfs::file_info( string $path )

phdfs::list_directory() −

La fonction phdfs :: list_directory () peut retourner un tableau en cas de succès, ou false en cas d'échec.

Syntaxe

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

phdfs::read() −

Syntaxe

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

phdfs::rename() −

La fonction phdfs :: rename () peut renvoyer true en cas de succès, ou false en cas d'échec.

Syntaxe

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

phdfs::tell() −

Syntaxe

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

phdfs::write() −

La fonction phdfs :: write () peut renvoyer true en cas de succès, ou false en cas d'échec.

Syntaxe

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