* The FTP server address. This parameter shouldn't have any trailing * slashes and shouldn't be prefixed with ftp://. *
* @param port int[optional]* This parameter specifies an alternate port to connect to. If it is * omitted or set to zero, then the default FTP port, 21, will be used. *
* @param timeout int[optional]* This parameter specifies the timeout for all subsequent network operations. * If omitted, the default value is 90 seconds. The timeout can be changed and * queried at any time with ftp_set_option and * ftp_get_option. *
* @return resource a FTP stream on success or false on error. */ function ftp_connect ($host, $port = null, $timeout = null) {} /** * Opens an Secure SSL-FTP connection * @link http://www.php.net/manual/en/function.ftp-ssl-connect.php * @param host string* The FTP server address. This parameter shouldn't have any trailing * slashes and shouldn't be prefixed with ftp://. *
* @param port int[optional]* This parameter specifies an alternate port to connect to. If it is * omitted or set to zero, then the default FTP port, 21, will be used. *
* @param timeout int[optional]* This parameter specifies the timeout for all subsequent network operations. * If omitted, the default value is 90 seconds. The timeout can be changed and * queried at any time with ftp_set_option and * ftp_get_option. *
* @return resource a SSL-FTP stream on success or false on error. */ function ftp_ssl_connect ($host, $port = null, $timeout = null) {} /** * Logs in to an FTP connection * @link http://www.php.net/manual/en/function.ftp-login.php * @param ftp_stream resource* The link identifier of the FTP connection. *
* @param username string* The username (USER). *
* @param password string* The password (PASS). *
* @return bool Returns true on success, false on failure. * If login fails, PHP will also throw a warning. */ function ftp_login ($ftp_stream, $username, $password) {} /** * Returns the current directory name * @link http://www.php.net/manual/en/function.ftp-pwd.php * @param ftp_stream resource* The link identifier of the FTP connection. *
* @return string the current directory name or false on error. */ function ftp_pwd ($ftp_stream) {} /** * Changes to the parent directory * @link http://www.php.net/manual/en/function.ftp-cdup.php * @param ftp_stream resource* The link identifier of the FTP connection. *
* @return bool Returns true on success, false on failure. */ function ftp_cdup ($ftp_stream) {} /** * Changes the current directory on a FTP server * @link http://www.php.net/manual/en/function.ftp-chdir.php * @param ftp_stream resource* The link identifier of the FTP connection. *
* @param directory string* The target directory. *
* @return bool Returns true on success, false on failure. * If changing directory fails, PHP will also throw a warning. */ function ftp_chdir ($ftp_stream, $directory) {} /** * Requests execution of a command on the FTP server * @link http://www.php.net/manual/en/function.ftp-exec.php * @param ftp_stream resource* The link identifier of the FTP connection. *
* @param command string* The command to execute. *
* @return bool true if the command was successful (server sent response code: * 200); otherwise returns false. */ function ftp_exec ($ftp_stream, $command) {} /** * Sends an arbitrary command to an FTP server * @link http://www.php.net/manual/en/function.ftp-raw.php * @param ftp_stream resource* The link identifier of the FTP connection. *
* @param command string* The command to execute. *
* @return array the server's response as an array of strings. * No parsing is performed on the response string, nor does * ftp_raw determine if the command succeeded. */ function ftp_raw ($ftp_stream, $command) {} /** * Creates a directory * @link http://www.php.net/manual/en/function.ftp-mkdir.php * @param ftp_stream resource* The link identifier of the FTP connection. *
* @param directory string* The name of the directory that will be created. *
* @return string the newly created directory name on success or false on error. */ function ftp_mkdir ($ftp_stream, $directory) {} /** * Removes a directory * @link http://www.php.net/manual/en/function.ftp-rmdir.php * @param ftp_stream resource* The link identifier of the FTP connection. *
* @param directory string* The directory to delete. This must be either an absolute or relative * path to an empty directory. *
* @return bool Returns true on success, false on failure. */ function ftp_rmdir ($ftp_stream, $directory) {} /** * Set permissions on a file via FTP * @link http://www.php.net/manual/en/function.ftp-chmod.php * @param ftp_stream resource* The link identifier of the FTP connection. *
* @param mode int* The new permissions, given as an octal value. *
* @param filename string* The remote file. *
* @return int the new file permissions on success or false on error. */ function ftp_chmod ($ftp_stream, $mode, $filename) {} /** * Allocates space for a file to be uploaded * @link http://www.php.net/manual/en/function.ftp-alloc.php * @param ftp_stream resource* The link identifier of the FTP connection. *
* @param filesize int* The number of bytes to allocate. *
* @param result string[optional]* A textual representation of the servers response will be returned by * reference in result if a variable is provided. *
* @return bool Returns true on success, false on failure. */ function ftp_alloc ($ftp_stream, $filesize, &$result = null) {} /** * Returns a list of files in the given directory * @link http://www.php.net/manual/en/function.ftp-nlist.php * @param ftp_stream resource* The link identifier of the FTP connection. *
* @param directory string* The directory to be listed. This parameter can also include arguments, eg. * ftp_nlist($conn_id, "-la /your/dir"); * Note that this parameter isn't escaped so there may be some issues with * filenames containing spaces and other characters. *
* @return array an array of filenames from the specified directory on success or * false on error. */ function ftp_nlist ($ftp_stream, $directory) {} /** * Returns a detailed list of files in the given directory * @link http://www.php.net/manual/en/function.ftp-rawlist.php * @param ftp_stream resource* The link identifier of the FTP connection. *
* @param directory string* The directory path. May include arguments for the LIST * command. *
* @param recursive bool[optional]* If set to true, the issued command will be LIST -R. *
* @return mixed an array where each element corresponds to one line of text. Returns * false when passed directory is invalid. * ** The output is not parsed in any way. The system type identifier returned by * ftp_systype can be used to determine how the results * should be interpreted. */ function ftp_rawlist ($ftp_stream, $directory, $recursive = null) {} /** * Returns the system type identifier of the remote FTP server * @link http://www.php.net/manual/en/function.ftp-systype.php * @param ftp_stream resource
* The link identifier of the FTP connection. *
* @return string the remote system type, or false on error. */ function ftp_systype ($ftp_stream) {} /** * Turns passive mode on or off * @link http://www.php.net/manual/en/function.ftp-pasv.php * @param ftp_stream resource* The link identifier of the FTP connection. *
* @param pasv bool* If true, the passive mode is turned on, else it's turned off. *
* @return bool Returns true on success, false on failure. */ function ftp_pasv ($ftp_stream, $pasv) {} /** * Downloads a file from the FTP server * @link http://www.php.net/manual/en/function.ftp-get.php * @param ftp_stream resource* The link identifier of the FTP connection. *
* @param local_file string* The local file path (will be overwritten if the file already exists). *
* @param remote_file string* The remote file path. *
* @param mode int* The transfer mode. Must be either FTP_ASCII or * FTP_BINARY. *
* @param resumepos int[optional]* The position in the remote file to start downloading from. *
* @return bool Returns true on success, false on failure. */ function ftp_get ($ftp_stream, $local_file, $remote_file, $mode, $resumepos = null) {} /** * Downloads a file from the FTP server and saves to an open file * @link http://www.php.net/manual/en/function.ftp-fget.php * @param ftp_stream resource* The link identifier of the FTP connection. *
* @param handle resource* An open file pointer in which we store the data. *
* @param remote_file string* The remote file path. *
* @param mode int* The transfer mode. Must be either FTP_ASCII or * FTP_BINARY. *
* @param resumepos int[optional]* The position in the remote file to start downloading from. *
* @return bool Returns true on success, false on failure. */ function ftp_fget ($ftp_stream, $handle, $remote_file, $mode, $resumepos = null) {} /** * Uploads a file to the FTP server * @link http://www.php.net/manual/en/function.ftp-put.php * @param ftp_stream resource* The link identifier of the FTP connection. *
* @param remote_file string* The remote file path. *
* @param local_file string* The local file path. *
* @param mode int* The transfer mode. Must be either FTP_ASCII or * FTP_BINARY. *
* @param startpos int[optional]The position in the remote file to start uploading to.
* @return bool Returns true on success, false on failure. */ function ftp_put ($ftp_stream, $remote_file, $local_file, $mode, $startpos = null) {} /** * Uploads from an open file to the FTP server * @link http://www.php.net/manual/en/function.ftp-fput.php * @param ftp_stream resource* The link identifier of the FTP connection. *
* @param remote_file string* The remote file path. *
* @param handle resource* An open file pointer on the local file. Reading stops at end of file. *
* @param mode int* The transfer mode. Must be either FTP_ASCII or * FTP_BINARY. *
* @param startpos int[optional]The position in the remote file to start uploading to.
* @return bool Returns true on success, false on failure. */ function ftp_fput ($ftp_stream, $remote_file, $handle, $mode, $startpos = null) {} /** * Returns the size of the given file * @link http://www.php.net/manual/en/function.ftp-size.php * @param ftp_stream resource* The link identifier of the FTP connection. *
* @param remote_file string* The remote file. *
* @return int the file size on success, or -1 on error. */ function ftp_size ($ftp_stream, $remote_file) {} /** * Returns the last modified time of the given file * @link http://www.php.net/manual/en/function.ftp-mdtm.php * @param ftp_stream resource* The link identifier of the FTP connection. *
* @param remote_file string* The file from which to extract the last modification time. *
* @return int the last modified time as a Unix timestamp on success, or -1 on * error. */ function ftp_mdtm ($ftp_stream, $remote_file) {} /** * Renames a file or a directory on the FTP server * @link http://www.php.net/manual/en/function.ftp-rename.php * @param ftp_stream resource* The link identifier of the FTP connection. *
* @param oldname string* The old file/directory name. *
* @param newname string* The new name. *
* @return bool Returns true on success, false on failure. */ function ftp_rename ($ftp_stream, $oldname, $newname) {} /** * Deletes a file on the FTP server * @link http://www.php.net/manual/en/function.ftp-delete.php * @param ftp_stream resource* The link identifier of the FTP connection. *
* @param path string* The file to delete. *
* @return bool Returns true on success, false on failure. */ function ftp_delete ($ftp_stream, $path) {} /** * Sends a SITE command to the server * @link http://www.php.net/manual/en/function.ftp-site.php * @param ftp_stream resource* The link identifier of the FTP connection. *
* @param command string* The SITE command. Note that this parameter isn't escaped so there may * be some issues with filenames containing spaces and other characters. *
* @return bool Returns true on success, false on failure. */ function ftp_site ($ftp_stream, $command) {} /** * Closes an FTP connection * @link http://www.php.net/manual/en/function.ftp-close.php * @param ftp_stream resource* The link identifier of the FTP connection. *
* @return bool Returns true on success, false on failure. */ function ftp_close ($ftp_stream) {} /** * Set miscellaneous runtime FTP options * @link http://www.php.net/manual/en/function.ftp-set-option.php * @param ftp_stream resource* The link identifier of the FTP connection. *
* @param option int* Currently, the following options are supported: *
| FTP_TIMEOUT_SEC | ** Changes the timeout in seconds used for all network related * functions. value must be an integer that * is greater than 0. The default timeout is 90 seconds. * | *
| FTP_AUTOSEEK | ** When enabled, GET or PUT requests with a * resumepos or startpos * parameter will first seek to the requested position within the file. * This is enabled by default. * | *
* This parameter depends on which option is chosen * to be altered. *
* @return bool true if the option could be set; false if not. A warning * message will be thrown if the option is not * supported or the passed value doesn't match the * expected value for the given option. */ function ftp_set_option ($ftp_stream, $option, $value) {} /** * Retrieves various runtime behaviours of the current FTP stream * @link http://www.php.net/manual/en/function.ftp-get-option.php * @param ftp_stream resource* The link identifier of the FTP connection. *
* @param option int* Currently, the following options are supported: *
| FTP_TIMEOUT_SEC | ** Returns the current timeout used for network related operations. * | *
| FTP_AUTOSEEK | ** Returns true if this option is on, false otherwise. * | *
* The link identifier of the FTP connection. *
* @param handle resource* An open file pointer in which we store the data. *
* @param remote_file string* The remote file path. *
* @param mode int* The transfer mode. Must be either FTP_ASCII or * FTP_BINARY. *
* @param resumepos int[optional]The position in the remote file to start downloading from.
* @return int FTP_FAILED or FTP_FINISHED * or FTP_MOREDATA. */ function ftp_nb_fget ($ftp_stream, $handle, $remote_file, $mode, $resumepos = null) {} /** * Retrieves a file from the FTP server and writes it to a local file (non-blocking) * @link http://www.php.net/manual/en/function.ftp-nb-get.php * @param ftp_stream resource* The link identifier of the FTP connection. *
* @param local_file string* The local file path (will be overwritten if the file already exists). *
* @param remote_file string* The remote file path. *
* @param mode int* The transfer mode. Must be either FTP_ASCII or * FTP_BINARY. *
* @param resumepos int[optional]The position in the remote file to start downloading from.
* @return int FTP_FAILED or FTP_FINISHED * or FTP_MOREDATA. */ function ftp_nb_get ($ftp_stream, $local_file, $remote_file, $mode, $resumepos = null) {} /** * Continues retrieving/sending a file (non-blocking) * @link http://www.php.net/manual/en/function.ftp-nb-continue.php * @param ftp_stream resource* The link identifier of the FTP connection. *
* @return int FTP_FAILED or FTP_FINISHED * or FTP_MOREDATA. */ function ftp_nb_continue ($ftp_stream) {} /** * Stores a file on the FTP server (non-blocking) * @link http://www.php.net/manual/en/function.ftp-nb-put.php * @param ftp_stream resource* The link identifier of the FTP connection. *
* @param remote_file string* The remote file path. *
* @param local_file string* The local file path. *
* @param mode int* The transfer mode. Must be either FTP_ASCII or * FTP_BINARY. *
* @param startpos int[optional]The position in the remote file to start uploading to.
* @return int FTP_FAILED or FTP_FINISHED * or FTP_MOREDATA. */ function ftp_nb_put ($ftp_stream, $remote_file, $local_file, $mode, $startpos = null) {} /** * Stores a file from an open file to the FTP server (non-blocking) * @link http://www.php.net/manual/en/function.ftp-nb-fput.php * @param ftp_stream resource* The link identifier of the FTP connection. *
* @param remote_file string* The remote file path. *
* @param handle resource* An open file pointer on the local file. Reading stops at end of file. *
* @param mode int* The transfer mode. Must be either FTP_ASCII or * FTP_BINARY. *
* @param startpos int[optional]The position in the remote file to start uploading to.
* @return int FTP_FAILED or FTP_FINISHED * or FTP_MOREDATA. */ function ftp_nb_fput ($ftp_stream, $remote_file, $handle, $mode, $startpos = null) {} /** * &Alias;* Automatically determine resume position and start position for GET and PUT requests * (only works if FTP_AUTOSEEK is enabled) *
* @link http://www.php.net/manual/en/ftp.constants.php */ define ('FTP_AUTORESUME', -1); /** ** See ftp_set_option for information. *
* @link http://www.php.net/manual/en/ftp.constants.php */ define ('FTP_TIMEOUT_SEC', 0); /** ** See ftp_set_option for information. *
* @link http://www.php.net/manual/en/ftp.constants.php */ define ('FTP_AUTOSEEK', 1); /** ** Asynchronous transfer has failed *
* @link http://www.php.net/manual/en/ftp.constants.php */ define ('FTP_FAILED', 0); /** ** Asynchronous transfer has finished *
* @link http://www.php.net/manual/en/ftp.constants.php */ define ('FTP_FINISHED', 1); /** ** Asynchronous transfer is still active *
* @link http://www.php.net/manual/en/ftp.constants.php */ define ('FTP_MOREDATA', 2); // End of ftp v. ?>