1 /* 2 +----------------------------------------------------------------------+ 3 | PHP Version 7 | 4 +----------------------------------------------------------------------+ 5 | Copyright (c) 1997-2018 The PHP Group | 6 +----------------------------------------------------------------------+ 7 | This source file is subject to version 3.01 of the PHP license, | 8 | that is bundled with this package in the file LICENSE, and is | 9 | available through the world-wide-web at the following url: | 10 | http://www.php.net/license/3_01.txt | 11 | If you did not receive a copy of the PHP license and are unable to | 12 | obtain it through the world-wide-web, please send a note to | 13 | license@php.net so we can mail you a copy immediately. | 14 +----------------------------------------------------------------------+ 15 | Authors: Andrew Skalski <askalski@chek.com> | 16 | Stefan Esser <sesser@php.net> (resume functions) | 17 +----------------------------------------------------------------------+ 18 */ 19 20 #ifndef _INCLUDED_FTP_H 21 #define _INCLUDED_FTP_H 22 23 #if HAVE_FTP 24 25 extern zend_module_entry php_ftp_module_entry; 26 #define php_ftp_module_ptr &php_ftp_module_entry 27 28 #include "php_version.h" 29 #define PHP_FTP_VERSION PHP_VERSION 30 31 #define PHP_FTP_OPT_TIMEOUT_SEC 0 32 #define PHP_FTP_OPT_AUTOSEEK 1 33 #define PHP_FTP_OPT_USEPASVADDRESS 2 34 #define PHP_FTP_AUTORESUME -1 35 36 PHP_MINIT_FUNCTION(ftp); 37 PHP_MINFO_FUNCTION(ftp); 38 39 PHP_FUNCTION(ftp_connect); 40 #ifdef HAVE_FTP_SSL 41 PHP_FUNCTION(ftp_ssl_connect); 42 #endif 43 PHP_FUNCTION(ftp_login); 44 PHP_FUNCTION(ftp_pwd); 45 PHP_FUNCTION(ftp_cdup); 46 PHP_FUNCTION(ftp_chdir); 47 PHP_FUNCTION(ftp_exec); 48 PHP_FUNCTION(ftp_raw); 49 PHP_FUNCTION(ftp_mkdir); 50 PHP_FUNCTION(ftp_rmdir); 51 PHP_FUNCTION(ftp_chmod); 52 PHP_FUNCTION(ftp_alloc); 53 PHP_FUNCTION(ftp_nlist); 54 PHP_FUNCTION(ftp_rawlist); 55 PHP_FUNCTION(ftp_mlsd); 56 PHP_FUNCTION(ftp_systype); 57 PHP_FUNCTION(ftp_pasv); 58 PHP_FUNCTION(ftp_get); 59 PHP_FUNCTION(ftp_fget); 60 PHP_FUNCTION(ftp_put); 61 PHP_FUNCTION(ftp_append); 62 PHP_FUNCTION(ftp_fput); 63 PHP_FUNCTION(ftp_size); 64 PHP_FUNCTION(ftp_mdtm); 65 PHP_FUNCTION(ftp_rename); 66 PHP_FUNCTION(ftp_delete); 67 PHP_FUNCTION(ftp_site); 68 PHP_FUNCTION(ftp_close); 69 PHP_FUNCTION(ftp_set_option); 70 PHP_FUNCTION(ftp_get_option); 71 PHP_FUNCTION(ftp_nb_get); 72 PHP_FUNCTION(ftp_nb_fget); 73 PHP_FUNCTION(ftp_nb_put); 74 PHP_FUNCTION(ftp_nb_fput); 75 PHP_FUNCTION(ftp_nb_continue); 76 77 #define phpext_ftp_ptr php_ftp_module_ptr 78 79 #else 80 #define php_ftp_module_ptr NULL 81 #endif /* HAVE_FTP */ 82 83 #endif 84