reference/ftp/functions/ftp-raw.xml
0773339dce767078f1ee0e55cc1c0428e02ae0ad
...
...
@@ -8,8 +8,8 @@
8
8
<refsect1 role="description">
9
9
&reftitle.description;
10
10
<methodsynopsis>
11
-
<type>array</type><methodname>ftp_raw</methodname>
12
-
<methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam>
11
+
<type class="union"><type>array</type><type>null</type></type><methodname>ftp_raw</methodname>
12
+
<methodparam><type>FTP\Connection</type><parameter>ftp</parameter></methodparam>
13
13
<methodparam><type>string</type><parameter>command</parameter></methodparam>
14
14
</methodsynopsis>
15
15
<para>
...
...
@@ -21,11 +21,9 @@
21
21
<para>
22
22
<variablelist>
23
23
<varlistentry>
24
-
<term><parameter>ftp_stream</parameter></term>
24
+
<term><parameter>ftp</parameter></term>
25
25
<listitem>
26
-
<para>
27
-
The link identifier of the FTP connection.
28
-
</para>
26
+
&ftp.parameter.ftp;
29
27
</listitem>
30
28
</varlistentry>
31
29
<varlistentry>
...
...
@@ -42,11 +40,29 @@
42
40
<refsect1 role="returnvalues">
43
41
&reftitle.returnvalues;
44
42
<para>
45
-
Returns the server's response as an array of strings.
43
+
Returns the server's response as an array of strings, or &null; on failure.
46
44
No parsing is performed on the response string, nor does
47
45
<function>ftp_raw</function> determine if the command succeeded.
48
46
</para>
49
47
</refsect1>
48
+

49
+
<refsect1 role="changelog">
50
+
&reftitle.changelog;
51
+
<informaltable>
52
+
<tgroup cols="2">
53
+
<thead>
54
+
<row>
55
+
<entry>&Version;</entry>
56
+
<entry>&Description;</entry>
57
+
</row>
58
+
</thead>
59
+
<tbody>
60
+
&ftp.changelog.ftp-param;
61
+
</tbody>
62
+
</tgroup>
63
+
</informaltable>
64
+
</refsect1>
65
+
50
66
<refsect1 role="examples">
51
67
&reftitle.examples;
52
68
<para>
...
...
@@ -55,12 +71,12 @@
55
71
<programlisting role="php">
56
72
<![CDATA[
57
73
<?php
58
-
$fp = ftp_connect("ftp.example.com");
74
+
$ftp = ftp_connect("ftp.example.com");
59
75

60
76
/* This is the same as:
61
-
ftp_login($fp, "joeblow", "secret"); */
62
-
ftp_raw($fp, "USER joeblow");
63
-
ftp_raw($fp, "PASS secret");
77
+
ftp_login($ftp, "joeblow", "secret"); */
78
+
ftp_raw($ftp, "USER joeblow");
79
+
ftp_raw($ftp, "PASS secret");
64
80
?>
65
81
]]>
66
82
</programlisting>
...
...
@@ -76,7 +92,6 @@ ftp_raw($fp, "PASS secret");
76
92
</para>
77
93
</refsect1>
78
94
</refentry>
79
-

80
95
<!-- Keep this comment at the end of the file
81
96
Local variables:
82
97
mode: sgml
83
98