reference/ftp/functions/ftp-nlist.xml
4d1c34c9b7a30cfc3a59641122c707a2812cfed7
...
...
@@ -8,8 +8,8 @@
8
8
<refsect1 role="description">
9
9
&reftitle.description;
10
10
<methodsynopsis>
11
-
<type>array</type><methodname>ftp_nlist</methodname>
12
-
<methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam>
11
+
<type class="union"><type>array</type><type>false</type></type><methodname>ftp_nlist</methodname>
12
+
<methodparam><type>FTP\Connection</type><parameter>ftp</parameter></methodparam>
13
13
<methodparam><type>string</type><parameter>directory</parameter></methodparam>
14
14
</methodsynopsis>
15
15
</refsect1>
...
...
@@ -18,11 +18,9 @@
18
18
<para>
19
19
<variablelist>
20
20
<varlistentry>
21
-
<term><parameter>ftp_stream</parameter></term>
21
+
<term><parameter>ftp</parameter></term>
22
22
<listitem>
23
-
<para>
24
-
The link identifier of the FTP connection.
25
-
</para>
23
+
&ftp.parameter.ftp;
26
24
</listitem>
27
25
</varlistentry>
28
26
<varlistentry>
...
...
@@ -30,7 +28,7 @@
30
28
<listitem>
31
29
<para>
32
30
The directory to be listed. This parameter can also include arguments, eg.
33
-
ftp_nlist($conn_id, "-la /your/dir");
31
+
<literal>ftp_nlist($ftp, "-la /your/dir");</literal>.
34
32
Note that this parameter isn't escaped so there may be some issues with
35
33
filenames containing spaces and other characters.
36
34
</para>
...
...
@@ -46,6 +44,24 @@
46
44
&false; on error.
47
45
</para>
48
46
</refsect1>
47
+

48
+
<refsect1 role="changelog">
49
+
&reftitle.changelog;
50
+
<informaltable>
51
+
<tgroup cols="2">
52
+
<thead>
53
+
<row>
54
+
<entry>&Version;</entry>
55
+
<entry>&Description;</entry>
56
+
</row>
57
+
</thead>
58
+
<tbody>
59
+
&ftp.changelog.ftp-param;
60
+
</tbody>
61
+
</tgroup>
62
+
</informaltable>
63
+
</refsect1>
64
+
49
65
<refsect1 role="examples">
50
66
&reftitle.examples;
51
67
<para>
...
...
@@ -56,13 +72,13 @@
56
72
<?php
57
73

58
74
// set up basic connection
59
-
$conn_id = ftp_connect($ftp_server);
75
+
$ftp = ftp_connect($ftp_server);
60
76

61
77
// login with username and password
62
-
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);
78
+
$login_result = ftp_login($ftp, $ftp_user_name, $ftp_user_pass);
63
79

64
80
// get contents of the current directory
65
-
$contents = ftp_nlist($conn_id, ".");
81
+
$contents = ftp_nlist($ftp, ".");
66
82

67
83
// output $contents
68
84
var_dump($contents);
...
...
@@ -90,11 +106,11 @@ array(3) {
90
106
<para>
91
107
<simplelist>
92
108
<member><function>ftp_rawlist</function></member>
109
+
<member><function>ftp_mlsd</function></member>
93
110
</simplelist>
94
111
</para>
95
112
</refsect1>
96
113
</refentry>
97
-

98
114
<!-- Keep this comment at the end of the file
99
115
Local variables:
100
116
mode: sgml
101
117