Packages

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

Classes

  • NFtp
  • NHtml
  • NHttpContext
  • NHttpRequest
  • NHttpResponse
  • NHttpUploadedFile
  • NSession
  • NSessionNamespace
  • NUri
  • NUriScript
  • NUser

Interfaces

  • IHttpRequest
  • IHttpResponse
  • IUser

Exceptions

  • NFtpException
  • Overview
  • Package
  • Class
  • Tree
  • Other releases

Class NFtp

Access to a FTP server.

$ftp = new Ftp;
$ftp->connect('ftp.example.com');
$ftp->login('anonymous', 'example@example.com');
$ftp->get('file.txt', 'README', NFtp::ASCII);
NObject
Extended by NFtp
Package: 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
NFtpException
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 NObject
__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 (for PHP 5.2) API documentation generated by ApiGen 2.3.0