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

Class: PEAR_FTP

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

Class Overview

PEAR
   |
   --PEAR_FTP

FTP class used for PEAR's remote installation feature


Author(s):

Version:

  • Release: 0.3.1

Copyright:

  • 1997-2006 The PHP Group

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

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


[ Top ]


Class Variables

$_parsed =

[line 40]

  • Access: protected

Type:   array


[ Top ]

$_pathprepend =  null

[line 52]

Value to prepend to relative paths
  • Access: protected

Type:   string|null


[ Top ]

$_ssh2connection =

[line 57]

Resource needed for ssh2 action
  • Access: protected

Type:   resource


[ Top ]

$_uri =

[line 46]

URI to prepend to all paths
  • Access: protected

Type:   string


[ Top ]



Method Detail

disconnect   [line 238]

void disconnect( )

  • Access: public

[ Top ]

get   [line 186]

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 63]

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

  • Access: public

Parameters:

string   $url   —  full url to remote config file

[ Top ]

installFile   [line 172]

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 154]

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 210]

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

  • Access: public

Parameters:

   $localfile   — 
   $remotefile   — 
   $overwrite   — 
   $binary   — 

[ Top ]

rm   [line 243]

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

  • Access: public

Parameters:

   $path   — 
   $recursive   — 

[ Top ]


Documentation generated on Thu, 10 Dec 2015 05:42:56 +0000 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.