Namespaces

  • Nette
    • Application
    • Caching
    • Collections
    • Config
    • Forms
    • IO
    • Loaders
    • Mail
    • Reflection
    • Security
    • Templates
    • Web
  • None
  • PHP

Classes

  • Ftp
  • Html
  • HttpContext
  • HttpRequest
  • HttpResponse
  • HttpUploadedFile
  • Session
  • SessionNamespace
  • Uri
  • UriScript
  • User

Interfaces

  • IHttpRequest
  • IHttpResponse
  • IUser

Exceptions

  • FtpException
  • Overview
  • Namespace
  • Class
  • Tree
  • Other releases

Class Ftp

Access to a FTP server.

$ftp = new Ftp;
$ftp->connect('ftp.example.com');
$ftp->login('anonymous', 'example@example.com');
$ftp->get('file.txt', 'README', Ftp::ASCII);
Nette\Object
Extended by Nette\Web\Ftp
Namespace: Nette\Web
Author: David Grudl
Located at Web/Ftp.php
Methods summary
public
# __construct( )
public mixed
# __call( string $name, array $args )

Magic method (do not call directly).

Magic method (do not call directly).

Parameters

$name
string
method name
$args
array
arguments

Returns

mixed

Throws

MemberAccessException
Nette\Web\FtpException
public
# reconnect( )

Reconnects to FTP server.

Reconnects to FTP server.

public boolean
# fileExists( string $file )

Checks if file or directory exists.

Checks if file or directory exists.

Parameters

$file
string

Returns

boolean
public boolean
# isDir( string $dir )

Checks if directory exists.

Checks if directory exists.

Parameters

$dir
string

Returns

boolean
public
# mkDirRecursive( string $dir )

Recursive creates directories.

Recursive creates directories.

Parameters

$dir
string
Methods inherited from Nette\Object
__callStatic(), __get(), __isset(), __set(), __unset(), extensionMethod(), getReflection()
Constants summary
integer ASCII FTP_ASCII
#

FTP constant alias

FTP constant alias

integer TEXT FTP_TEXT
#
integer BINARY FTP_BINARY
#
integer IMAGE FTP_IMAGE
#
integer TIMEOUT_SEC FTP_TIMEOUT_SEC
#
integer AUTOSEEK FTP_AUTOSEEK
#
integer AUTORESUME FTP_AUTORESUME
#
integer FAILED FTP_FAILED
#
integer FINISHED FTP_FINISHED
#
integer MOREDATA FTP_MOREDATA
#
Nette Framework 0.9.7 API documentation generated by ApiGen 2.3.0