1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 #ifndef _INCLUDED_FTP_H
23 #define _INCLUDED_FTP_H
24
25 #if HAVE_FTP
26
27 extern zend_module_entry php_ftp_module_entry;
28 #define php_ftp_module_ptr &php_ftp_module_entry
29
30 #include "php_version.h"
31 #define PHP_FTP_VERSION PHP_VERSION
32
33 #define PHP_FTP_OPT_TIMEOUT_SEC 0
34 #define PHP_FTP_OPT_AUTOSEEK 1
35 #define PHP_FTP_OPT_USEPASVADDRESS 2
36 #define PHP_FTP_AUTORESUME -1
37
38 PHP_MINIT_FUNCTION(ftp);
39 PHP_MINFO_FUNCTION(ftp);
40
41 PHP_FUNCTION(ftp_connect);
42 #ifdef HAVE_FTP_SSL
43 PHP_FUNCTION(ftp_ssl_connect);
44 #endif
45 PHP_FUNCTION(ftp_login);
46 PHP_FUNCTION(ftp_pwd);
47 PHP_FUNCTION(ftp_cdup);
48 PHP_FUNCTION(ftp_chdir);
49 PHP_FUNCTION(ftp_exec);
50 PHP_FUNCTION(ftp_raw);
51 PHP_FUNCTION(ftp_mkdir);
52 PHP_FUNCTION(ftp_rmdir);
53 PHP_FUNCTION(ftp_chmod);
54 PHP_FUNCTION(ftp_alloc);
55 PHP_FUNCTION(ftp_nlist);
56 PHP_FUNCTION(ftp_rawlist);
57 PHP_FUNCTION(ftp_systype);
58 PHP_FUNCTION(ftp_pasv);
59 PHP_FUNCTION(ftp_get);
60 PHP_FUNCTION(ftp_fget);
61 PHP_FUNCTION(ftp_put);
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
82
83 #endif