PEAR
[ class tree: PEAR ] [ index: PEAR ] [ all elements ]

Class: PEAR_FTP

Source Location: /PEAR_RemoteInstaller-0.3.2/PEAR/FTP.php

Class Overview

PEAR
   |
   --PEAR_FTP

FTP class used for PEAR's remote installation feature


Author(s):

Version:

  • Release: 0.3.2

Copyright:

  • 1997-2009 The Authors

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 28]
FTP class used for PEAR's remote installation feature


[ Top ]


Class Variables

$_parsed =

[line 34]

  • Access: protected

Type:   array


[ Top ]

$_pathprepend =  null

[line 46]

Value to prepend to relative paths
  • Access: protected

Type:   string|null


[ Top ]

$_ssh2connection =

[line 51]

Resource needed for ssh2 action
  • Access: protected

Type:   resource


[ Top ]

$_uri =

[line 40]

URI to prepend to all paths
  • Access: protected

Type:   string


[ Top ]



Method Detail

disconnect   [line 232]

void disconnect( )

  • Access: public

[ Top ]

get   [line 180]

void get( string $relfile, string $localfile, [ $binary = true])

Retrieve a file from the remote server
  • Access: public

Parameters:

string   $relfile     relative path of the remote file
string   $localfile     full local path to save the file in
   $binary     

[ Top ]

init   [line 57]

true|PEAR_Error init( [string $url = null])

  • Access: public

Parameters:

string   $url     full url to remote config file

[ Top ]

installFile   [line 166]

void installFile( string $local, string $remote)

  • Access: public

Parameters:

string   $local     full path to local file
string   $remote     full path to remote file

[ Top ]

mkdir   [line 148]

mixed mkdir( string $dir, [bool $recursive = false])

This works similar to the mkdir-command on your local machine. You can either give it an absolute or relative path. The relative path will be completed with the actual selected server-path. (see: pwd())
  • Return: True on success, otherwise PEAR::Error
  • See: NET_FTP_ERR_CREATEDIR_FAILED
  • Access: public

Parameters:

string   $dir     relative dir-path
bool   $recursive     (optional) Create all needed directories

[ Top ]

put   [line 204]

void put( $localfile, $remotefile, [ $overwrite = false], [ $binary = true])

  • Access: public

Parameters:

   $localfile     
   $remotefile     
   $overwrite     
   $binary     

[ Top ]

rm   [line 237]

void rm( $path, [ $recursive = false])

  • Access: public

Parameters:

   $path     
   $recursive     

[ Top ]


Documentation generated on Fri, 13 Apr 2012 05:30:02 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.