Class ftpconnection

Description

Located in /ftpconnection.class.php (line 16)

tcpconnection
   |
   --ftpconnection
Method Summary
ftpconnection __construct (string $host, string $username, string $password, [bool $ssl = false])
bool cdup ()
bool chdir (string $directory)
bool chmod (string $name, string $mode)
bool delete (string $filename)
mixed disconnect ()
bool get (string $filename, string $localfile)
bool is_dir (string $name)
bool is_file (string $name)
mixed ls ([bool $listall = false], [bool $details = false], [string $name = ''])
bool mkdir (string $dirname)
bool put (string $localfile, string $filename)
mixed pwd ()
mixed readfile (string $filename)
bool rename (string $name, string $newname)
bool rmdir (string $dirname)
bool writefile (string $filename, string $data)
void __descruct ()
Variables
Methods
Constructor __construct (line 26)

Constructor

  • access: public
ftpconnection __construct (string $host, string $username, string $password, [bool $ssl = false])
  • string $host
  • string $username
  • string $password
  • bool $ssl

Redefinition of:
tcpconnection::__construct()
Constructor
cdup (line 150)

Change to the parent directory.

  • access: public
bool cdup ()
chdir (line 130)

Change the current directory.

  • access: public
bool chdir (string $directory)
  • string $directory
chmod (line 485)

Change the permissions of a file or directory.

  • access: public
bool chmod (string $name, string $mode)
  • string $name
  • string $mode
delete (line 435)

Delete a file.

  • access: public
bool delete (string $filename)
  • string $filename
disconnect (line 85)

Disconnect from the server.

  • access: public
mixed disconnect ()

Redefinition of:
tcpconnection::disconnect()
Disconnect from the server.
get (line 369)

Download a file.

  • access: public
bool get (string $filename, string $localfile)
  • string $filename
  • string $localfile
is_dir (line 506)

Check if an entry is a directory.

  • access: public
bool is_dir (string $name)
  • string $name
is_file (line 530)

Check if an entry is a file.

  • access: public
bool is_file (string $name)
  • string $name
ls (line 241)

List the contents of the current directory.

  • access: public
mixed ls ([bool $listall = false], [bool $details = false], [string $name = ''])
  • bool $listall
  • bool $details
  • string $name
mkdir (line 197)

Create a new directory.

  • access: public
bool mkdir (string $dirname)
  • string $dirname
put (line 306)

Upload a file.

  • access: public
bool put (string $localfile, string $filename)
  • string $localfile
  • string $filename
pwd (line 170)

Get the current directory.

  • access: public
mixed pwd ()
readfile (line 392)

Read a file.

  • access: public
mixed readfile (string $filename)
  • string $filename
rename (line 457)

Rename a file or directory.

  • access: public
bool rename (string $name, string $newname)
  • string $name
  • string $newname
rmdir (line 218)

Remve a directory.

  • access: public
bool rmdir (string $dirname)
  • string $dirname
writefile (line 325)

Write a file.

  • access: public
bool writefile (string $filename, string $data)
  • string $filename
  • string $data
__descruct (line 75)

Destructor

  • access: public
void __descruct ()

Inherited Methods

Inherited From tcpconnection

tcpconnection::__construct()
tcpconnection::connect()
tcpconnection::connected()
tcpconnection::disconnect()
tcpconnection::read()
tcpconnection::readbytes()
tcpconnection::readline()
tcpconnection::setblocking()
tcpconnection::settimeout()
tcpconnection::write()

Documentation generated on Thu, 12 Mar 2009 16:30:22 +0800 by phpDocumentor 1.4.2