1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
|
<?php
/** @return resource|false */
function ftp_connect(string $host, int $port = 21, int $timeout = 90) {}
#ifdef HAVE_FTP_SSL
/** @return resource|false */
function ftp_ssl_connect(string $host, int $port = 21, int $timeout = 90) {}
#endif
/** @param resource $ftp */
function ftp_login($ftp, string $username, string $password): bool {}
/**
* @param resource $ftp
* @return string|false
*/
function ftp_pwd($ftp) {}
/** @param resource $ftp */
function ftp_cdup($ftp): bool {}
/** @param resource $ftp */
function ftp_chdir($ftp, string $directory): bool {}
/** @param resource $ftp */
function ftp_exec($ftp, string $command): bool {}
/** @param resource $ftp */
function ftp_raw($ftp, string $command): array {}
/**
* @param resource $ftp
* @return string|false
*/
function ftp_mkdir($ftp, string $directory) {}
/** @param resource $ftp */
function ftp_rmdir($ftp, string $directory): bool {}
/**
* @param resource $ftp
* @return int|false
*/
function ftp_chmod($ftp, int $mode, string $filename) {}
/** @param resource $ftp */
function ftp_alloc($ftp, int $size, &$response = UNKNOWN): bool {}
/**
* @param resource $ftp
* @return array|false
*/
function ftp_nlist($ftp, string $directory) {}
/**
* @param resource $ftp
* @return array|false
*/
function ftp_rawlist($ftp, string $directory, bool $recurse = false) {}
/**
* @param resource $ftp
* @return array|false
*/
function ftp_mlsd($ftp, string $directory) {}
/**
* @param resource $ftp
* @return string|false
*/
function ftp_systype($ftp) {}
/**
* @param resource $ftp
* @param resource $fp
*/
function ftp_fget($ftp, $fp, string $remote_file, int $mode = FTP_BINARY, int $resumepos = 0): bool {}
/**
* @param resource $ftp
* @param resource $fp
* @return int|false
*/
function ftp_nb_fget($ftp, $fp, string $remote_file, int $mode = FTP_BINARY, int $resumpos = 0) {}
/** @param resource $ftp */
function ftp_pasv($ftp, bool $pasv): bool {}
/** @param resource $ftp */
function ftp_get($ftp, string $local_file, string $remote_file, int $mode = FTP_BINARY, int $resumepos = 0): bool {}
/** @param resource $ftp */
function ftp_nb_get($ftp, string $local_file, string $remote_file, int $mode = FTP_BINARY, int $resume_pos = 0): int {}
/** @param resource $ftp */
function ftp_nb_continue($ftp): int {}
/**
* @param resource $ftp
* @param resource $fp
*/
function ftp_fput($ftp, string $remote_file, $fp, int $mode = FTP_BINARY, int $startpos = 0): bool {}
/**
* @param resource $ftp
* @param resource $fp
* @return int|false
*/
function ftp_nb_fput($ftp, string $remote_file, $fp, $mode = FTP_BINARY, $startpos = 0) {}
/** @param resource $ftp */
function ftp_put($ftp, string $remote_file, string $local_file, int $mode = FTP_BINARY, int $startpos = 0): bool {}
/** @param resource $ftp */
function ftp_append($ftp, string $remove_file, string $local_file, int $mode = FTP_BINARY): bool {}
/**
* @param resource $ftp
* @return int|false
*/
function ftp_nb_put($ftp, string $remote_file, string $local_file, int $mode = FTP_BINARY, int $startpos = 0) {}
/** @param resource $ftp */
function ftp_size($ftp, string $filename): int {}
/** @param resource $ftp */
function ftp_mdtm($ftp, string $filename): int {}
/** @param resource $ftp */
function ftp_rename($ftp, string $src, string $dest): bool {}
/** @param resource $ftp */
function ftp_delete($ftp, string $file): bool {}
/** @param resource $ftp */
function ftp_site($ftp, string $cmd): bool {}
/** @param resource $ftp */
function ftp_close($ftp): bool {}
/** @param resource $ftp */
function ftp_set_option($ftp, int $option, $value): bool {}
/**
* @param resource $ftp
* @return int|bool
*/
function ftp_get_option($ftp, int $option) {}
|