reference/ftp/functions/ftp-rawlist.xml
4d1c34c9b7a30cfc3a59641122c707a2812cfed7
...
...
@@ -8,10 +8,10 @@
8
8
<refsect1 role="description">
9
9
&reftitle.description;
10
10
<methodsynopsis>
11
-
<type>mixed</type><methodname>ftp_rawlist</methodname>
12
-
<methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam>
11
+
<type class="union"><type>array</type><type>false</type></type><methodname>ftp_rawlist</methodname>
12
+
<methodparam><type>FTP\Connection</type><parameter>ftp</parameter></methodparam>
13
13
<methodparam><type>string</type><parameter>directory</parameter></methodparam>
14
-
<methodparam choice="opt"><type>bool</type><parameter>recursive</parameter><initializer>false</initializer></methodparam>
14
+
<methodparam choice="opt"><type>bool</type><parameter>recursive</parameter><initializer>&false;</initializer></methodparam>
15
15
</methodsynopsis>
16
16
<para>
17
17
<function>ftp_rawlist</function> executes the FTP
...
...
@@ -23,11 +23,9 @@
23
23
<para>
24
24
<variablelist>
25
25
<varlistentry>
26
-
<term><parameter>ftp_stream</parameter></term>
26
+
<term><parameter>ftp</parameter></term>
27
27
<listitem>
28
-
<para>
29
-
The link identifier of the FTP connection.
30
-
</para>
28
+
&ftp.parameter.ftp;
31
29
</listitem>
32
30
</varlistentry>
33
31
<varlistentry>
...
...
@@ -62,6 +60,24 @@
62
60
should be interpreted.
63
61
</para>
64
62
</refsect1>
63
+

64
+
<refsect1 role="changelog">
65
+
&reftitle.changelog;
66
+
<informaltable>
67
+
<tgroup cols="2">
68
+
<thead>
69
+
<row>
70
+
<entry>&Version;</entry>
71
+
<entry>&Description;</entry>
72
+
</row>
73
+
</thead>
74
+
<tbody>
75
+
&ftp.changelog.ftp-param;
76
+
</tbody>
77
+
</tgroup>
78
+
</informaltable>
79
+
</refsect1>
80
+
65
81
<refsect1 role="examples">
66
82
&reftitle.examples;
67
83
<para>
...
...
@@ -72,16 +88,16 @@
72
88
<?php
73
89

74
90
// set up basic connection
75
-
$conn_id = ftp_connect($ftp_server);
91
+
$ftp = ftp_connect($ftp_server);
76
92

77
93
// login with username and password
78
-
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);
94
+
$login_result = ftp_login($ftp, $ftp_user_name, $ftp_user_pass);
79
95

80
96
// get the file list for /
81
-
$buff = ftp_rawlist($conn_id, '/');
97
+
$buff = ftp_rawlist($ftp, '/');
82
98

83
99
// close the connection
84
-
ftp_close($conn_id);
100
+
ftp_close($ftp);
85
101

86
102
// output the buffer
87
103
var_dump($buff);
...
...
@@ -109,11 +125,11 @@ array(3) {
109
125
<para>
110
126
<simplelist>
111
127
<member><function>ftp_nlist</function></member>
128
+
<member><function>ftp_mlsd</function></member>
112
129
</simplelist>
113
130
</para>
114
131
</refsect1>
115
132
</refentry>
116
-

117
133
<!-- Keep this comment at the end of the file
118
134
Local variables:
119
135
mode: sgml
120
136