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

File: FTP.php

Source Location: /Net_FTP-1.3.2/Net/FTP.php

Classes:

Net_FTP
Class for comfortable FTP-communication

Page Details:

Net_FTP main file.

This file must be included to use the Net_FTP package.

PHP versions 4 and 5

LICENSE: This source file is subject to version 3.0 of the PHP license that is available through the world-wide-web at the following URI: http://www.php.net/license/3_0.txt. If you did not receive a copy of the PHP License and are unable to obtain it through the web, please send a note to license@php.net so we can mail you a copy immediately.

Includes:

require_once('PEAR.php') [line 27]

NET_FTP_DIRS_FILES [line 54]

NET_FTP_DIRS_FILES = 2,true
Option to let the ls() method return directories and files (default).

[ Top ]



NET_FTP_DIRS_ONLY [line 45]

NET_FTP_DIRS_ONLY = 1,true
Option to let the ls() method return only directories.

[ Top ]



NET_FTP_ERR_CHMOD_FAILED [line 152]

NET_FTP_ERR_CHMOD_FAILED = -7
Error code to indicate that the CHMOD command failed.

The execution of CHMOD failed. Ensure, that your FTP server supports the CHMOD command and that you have the appropriate access rights to use CHMOD.


[ Top ]



NET_FTP_ERR_CONNECT_FAILED [line 75]

NET_FTP_ERR_CONNECT_FAILED = -1
Error code to indicate a failed connection This error code indicates, that the connection you tryed to set up could not be established. Check your connection settings (host & port)!

[ Top ]



NET_FTP_ERR_CREATEDIR_FAILED [line 118]

NET_FTP_ERR_CREATEDIR_FAILED = -4
Error code to indicate that the creation of a directory failed The directory you tryed to create could not be created. Check the access rights on the parent directory!

[ Top ]



NET_FTP_ERR_CREATELOCALDIR_FAILED [line 301]

NET_FTP_ERR_CREATELOCALDIR_FAILED = -20
Error code to indicate that a local directory failed to be created You tried to create a local directory through getRecursive() method, which has failed. Ensure that you have the appropriate access rights to create it.

[ Top ]



NET_FTP_ERR_DATEFORMAT_FAILED [line 197]

NET_FTP_ERR_DATEFORMAT_FAILED = -11
Error code to indicate that a date returned by the server was misformated

A date string returned by your server seems to be missformated and could not be parsed. Check that the server is configured correctly. If you're sure, please send an email to the auhtor with a dumped output of $ftp->ls('./', NET_FTP_RAWLIST); to get the date format supported.


[ Top ]



NET_FTP_ERR_DELETEDIR_FAILED [line 401]

NET_FTP_ERR_DELETEDIR_FAILED = -29
Error code to indicate that the deletion of a directory faild The specified file could not be deleted. Ensure to have sufficient access rights to delete the file.
  • See: Net_FTP::rm()
  • Since: 1.3
  • Name: NET_FTP_ERR_EXTFILEREAD_FAILED

[ Top ]



NET_FTP_ERR_DELETEFILE_FAILED [line 390]

NET_FTP_ERR_DELETEFILE_FAILED = -28
Error code to indicate that the deletion of a file failed The specified file could not be deleted. Ensure to have sufficient access rights to delete the file.
  • See: Net_FTP::rm()
  • Since: 1.3
  • Name: NET_FTP_ERR_EXTFILEREAD_FAILED

[ Top ]



NET_FTP_ERR_DETERMINEPATH_FAILED [line 107]

NET_FTP_ERR_DETERMINEPATH_FAILED = 4
Error code to indicate that Net_FTP could not determine the current path The cwd() method failed and could not determine the path you currently reside in on the FTP server.
  • See: Net_FTP::pwd()
  • Since: 1.3
  • Name: NET_FTP_ERR_DETERMINEPATH_FAILED

[ Top ]



NET_FTP_ERR_DIRCHANGE_FAILED [line 96]

NET_FTP_ERR_DIRCHANGE_FAILED = 2
Error code to indicate a failed directory change The cd() method failed. Ensure that the directory you wanted to access exists.
  • See: Net_FTP::cd()
  • Since: 1.3
  • Name: NET_FTP_ERR_DIRCHANGE_FAILED

[ Top ]



NET_FTP_ERR_DIRLIST_UNSUPPORTED [line 425]

NET_FTP_ERR_DIRLIST_UNSUPPORTED = -31
Error code to indicate that the directory listing failed

The directory listing format your server uses seems not to be supported by Net_FTP. Please send the output of the call ls('./', NET_FTP_RAWLIST); to the author of this class to get it supported.

  • See: Net_FTP::ls()
  • Since: 1.3
  • Name: NET_FTP_ERR_DIRLIST_UNSUPPORTED

[ Top ]



NET_FTP_ERR_DISCONNECT_FAILED [line 435]

NET_FTP_ERR_DISCONNECT_FAILED = -32
Error code to indicate failed disconnecting This error code indicates, that disconnection was not possible.

[ Top ]



NET_FTP_ERR_EXEC_FAILED [line 129]

NET_FTP_ERR_EXEC_FAILED = -5
Error code to indicate that the EXEC execution failed.

The execution of a command using EXEC failed. Ensure, that your FTP server supports the EXEC command.


[ Top ]



NET_FTP_ERR_EXTFILENOTEXIST [line 368]

NET_FTP_ERR_EXTFILENOTEXIST = -26
Error code to indicate that the provided extension file doesn't exist The provided extension file does not exist. Ensure to provided an existant extension file.
  • See: Net_FTP::getExtensionFile()
  • Since: 1.3
  • Name: NET_FTP_ERR_EXTFILENOTEXIST

[ Top ]



NET_FTP_ERR_EXTFILEREAD_FAILED [line 379]

NET_FTP_ERR_EXTFILEREAD_FAILED = -27
Error code to indicate that the provided extension file is not readable The provided extension file is not readable. Ensure to have sufficient access rights for it.
  • See: Net_FTP::getExtensionFile()
  • Since: 1.3
  • Name: NET_FTP_ERR_EXTFILEREAD_FAILED

[ Top ]



NET_FTP_ERR_HOSTNAMENOSTRING [line 312]

NET_FTP_ERR_HOSTNAMENOSTRING = -21
Error code to indicate that the provided hostname was incorrect The hostname you provided was invalid. Ensure to provide either a full qualified domain name or an IP address.

[ Top ]



NET_FTP_ERR_LOCALFILENOTEXIST [line 242]

NET_FTP_ERR_LOCALFILENOTEXIST = -15
Error code to indicate that the file you wanted to upload does not exist The file you tried to upload does not exist. Ensure that it exists.

[ Top ]



NET_FTP_ERR_LOCALPATHNODIR [line 289]

NET_FTP_ERR_LOCALPATHNODIR = -19
Error code to indicate that you specified an incorrect directory path The local path you specified seems not to be a directory. Ensure that the path you specify is a directory and that the path string ends with a /.

[ Top ]



NET_FTP_ERR_LOGIN_FAILED [line 86]

NET_FTP_ERR_LOGIN_FAILED = -2
Error code to indicate a failed login This error code indicates, that the login to the FTP server failed. Check your user data (username & password).

[ Top ]



NET_FTP_ERR_MDTMDIR_UNSUPPORTED [line 174]

NET_FTP_ERR_MDTMDIR_UNSUPPORTED = -9
Error code to indicate that the MDTM command failed The MDTM command is not supported for directories. Ensure that you gave a file path to the mdtm() method, not a directory path.

[ Top ]



NET_FTP_ERR_MDTM_FAILED [line 184]

NET_FTP_ERR_MDTM_FAILED = -10
Error code to indicate that the MDTM command failed The MDTM command failed. Ensure that your server supports the MDTM command.

[ Top ]



NET_FTP_ERR_NOMODECONST [line 334]

NET_FTP_ERR_NOMODECONST = -23
Error code to indicate that you provided an invalid mode constant The mode constant you provided was invalid. You may only provide FTP_ASCII or FTP_BINARY.

[ Top ]



NET_FTP_ERR_OVERWRITELOCALFILE_FAILED [line 232]

NET_FTP_ERR_OVERWRITELOCALFILE_FAILED = -14
Error code to indicate that a local file could not be overwritten Also you specified to overwrite the local file you want to download to, it has not been possible to do so. Check that you have the appropriate access rights on the local file to overwrite it.

[ Top ]



NET_FTP_ERR_OVERWRITELOCALFILE_FORBIDDEN [line 220]

NET_FTP_ERR_OVERWRITELOCALFILE_FORBIDDEN = -13
Error code to indicate that a local file could not be overwritten You specified not to overwrite files. Therefore the local file has not been overwriten. If you want to get the file overwriten, please set the option to do so.

[ Top ]



NET_FTP_ERR_OVERWRITEREMOTEFILE_FORBIDDEN [line 254]

NET_FTP_ERR_OVERWRITEREMOTEFILE_FORBIDDEN = -16
Error code to indicate that a remote file could not be overwritten You specified not to overwrite files. Therefore the remote file has not been overwriten. If you want to get the file overwriten, please set the option to do so.

[ Top ]



NET_FTP_ERR_PASSWORDNOSTRING [line 455]

NET_FTP_ERR_PASSWORDNOSTRING = -33
Error code to indicate that the username you provided was invalid.

Check that you provided a non-empty string as the username.

  • See: Net_FTP::setPassword()
  • Since: 1.3
  • Name: NET_FTP_ERR_PASSWORDNOSTRING

[ Top ]



NET_FTP_ERR_PORTLESSZERO [line 323]

NET_FTP_ERR_PORTLESSZERO = -22
Error code to indicate that the provided port was incorrect The port number you provided was invalid. Ensure to provide either a a numeric port number greater zero.

[ Top ]



NET_FTP_ERR_RAWDIRLIST_FAILED [line 412]

NET_FTP_ERR_RAWDIRLIST_FAILED = -30
Error code to indicate that the directory listing failed PHP could not list the directory contents on the server. Ensure that your server is configured appropriate.
  • See: Net_FTP::ls()
  • Since: 1.3
  • Name: NET_FTP_ERR_RAWDIRLIST_FAILED

[ Top ]



NET_FTP_ERR_REMOTEPATHNODIR [line 277]

NET_FTP_ERR_REMOTEPATHNODIR = -18
Error code to indicate that you specified an incorrect directory path The remote path you specified seems not to be a directory. Ensure that the path you specify is a directory and that the path string ends with a /.

[ Top ]



NET_FTP_ERR_RENAME_FAILED [line 163]

NET_FTP_ERR_RENAME_FAILED = -8
Error code to indicate that a file rename failed The renaming of a file on the server failed. Ensure that you have the appropriate access rights to rename the file.

[ Top ]



NET_FTP_ERR_SETTIMEOUT_FAILED [line 357]

NET_FTP_ERR_SETTIMEOUT_FAILED = -25
Error code to indicate that you provided an invalid timeout An error occured while setting the timeout. Ensure that you provide a valid integer for the timeount and that your PHP installation works correctly.

[ Top ]



NET_FTP_ERR_SITE_FAILED [line 140]

NET_FTP_ERR_SITE_FAILED = -6
Error code to indicate that the SITE command failed.

The execution of a command using SITE failed. Ensure, that your FTP server supports the SITE command.


[ Top ]



NET_FTP_ERR_SIZE_FAILED [line 208]

NET_FTP_ERR_SIZE_FAILED = -12
Error code to indicate that the SIZE command failed The determination of the filesize of a file failed. Ensure that your server supports the SIZE command.

[ Top ]



NET_FTP_ERR_TIMEOUTLESSZERO [line 345]

NET_FTP_ERR_TIMEOUTLESSZERO = -24
Error code to indicate that you provided an invalid timeout The timeout you provided was invalid. You have to provide a timeout greater or equal to zero.

[ Top ]



NET_FTP_ERR_UPLOADFILE_FAILED [line 265]

NET_FTP_ERR_UPLOADFILE_FAILED = -17
Error code to indicate that the upload of a file failed The upload you tried failed. Ensure that you have appropriate access rights to upload the desired file.

[ Top ]



NET_FTP_ERR_USERNAMENOSTRING [line 445]

NET_FTP_ERR_USERNAMENOSTRING = -33
Error code to indicate that the username you provided was invalid.

Check that you provided a non-empty string as the username.


[ Top ]



NET_FTP_FILES_ONLY [line 36]

NET_FTP_FILES_ONLY = 0,true
Option to let the ls() method return only files.

[ Top ]



NET_FTP_RAWLIST [line 63]

NET_FTP_RAWLIST = 3,true
Option to let the ls() method return the raw directory listing from ftp_rawlist().

[ Top ]



Documentation generated on Mon, 11 Mar 2019 14:36:34 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.