
- PHP Tutorial
- PHP - Home
- PHP - Introduction
- PHP - Environment Setup
- PHP - Syntax Overview
- PHP - Variable Types
- PHP - Constants
- PHP - Operator Types
- PHP - Decision Making
- PHP - Loop Types
- PHP - Arrays
- PHP - Strings
- PHP - Web Concepts
- PHP - GET & POST
- PHP - File Inclusion
- PHP - Files & I/O
- PHP - Functions
- PHP - Cookies
- PHP - Sessions
- PHP - Sending Emails
- PHP - File Uploading
- PHP - Coding Standard
- Advanced PHP
- PHP - Predefined Variables
- PHP - Regular Expression
- PHP - Error Handling
- PHP - Bugs Debugging
- PHP - Date & Time
- PHP & MySQL
- PHP & AJAX
- PHP & XML
- PHP - Object Oriented
- PHP - For C Developers
- PHP - For PERL Developers
- PHP Form Examples
- PHP - Form Introduction
- PHP - Validation Example
- PHP - Complete Form
- PHP login Examples
- PHP - Login Example
- PHP - Facebook Login
- PHP - Paypal Integration
- PHP - MySQL Login
- PHP AJAX Examples
- PHP - AJAX Search
- PHP - AJAX XML Parser
- PHP - AJAX Auto Complete Search
- PHP - AJAX RSS Feed Example
- PHP XML Example
- PHP - XML Introduction
- PHP - Simple XML
- PHP - Simple XML GET
- PHP - SAX Parser Example
- PHP - DOM Parser Example
- PHP Frame Works
- PHP - Frame Works
- PHP - Core PHP vs Frame Works
- PHP Design Patterns
- PHP - Design Patterns
- PHP Function Reference
- PHP - Built-In Functions
- PHP Useful Resources
- PHP - Questions & Answers
- PHP - Useful Resources
- PHP - Discussion
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
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 ] )