reference/ftp/functions/ftp-pwd.xml
4d1c34c9b7a30cfc3a59641122c707a2812cfed7
...
...
@@ -8,8 +8,8 @@
8
8
<refsect1 role="description">
9
9
&reftitle.description;
10
10
<methodsynopsis>
11
-
<type>string</type><methodname>ftp_pwd</methodname>
12
-
<methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam>
11
+
<type class="union"><type>string</type><type>false</type></type><methodname>ftp_pwd</methodname>
12
+
<methodparam><type>FTP\Connection</type><parameter>ftp</parameter></methodparam>
13
13
</methodsynopsis>
14
14
<para>
15
15
</para>
...
...
@@ -19,11 +19,9 @@
19
19
<para>
20
20
<variablelist>
21
21
<varlistentry>
22
-
<term><parameter>ftp_stream</parameter></term>
22
+
<term><parameter>ftp</parameter></term>
23
23
<listitem>
24
-
<para>
25
-
The link identifier of the FTP connection.
26
-
</para>
24
+
&ftp.parameter.ftp;
27
25
</listitem>
28
26
</varlistentry>
29
27
</variablelist>
...
...
@@ -35,6 +33,24 @@
35
33
Returns the current directory name or &false; on error.
36
34
</para>
37
35
</refsect1>
36
+

37
+
<refsect1 role="changelog">
38
+
&reftitle.changelog;
39
+
<informaltable>
40
+
<tgroup cols="2">
41
+
<thead>
42
+
<row>
43
+
<entry>&Version;</entry>
44
+
<entry>&Description;</entry>
45
+
</row>
46
+
</thead>
47
+
<tbody>
48
+
&ftp.changelog.ftp-param;
49
+
</tbody>
50
+
</tgroup>
51
+
</informaltable>
52
+
</refsect1>
53
+
38
54
<refsect1 role="examples">
39
55
&reftitle.examples;
40
56
<para>
...
...
@@ -45,19 +61,19 @@
45
61
<?php
46
62

47
63
// set up basic connection
48
-
$conn_id = ftp_connect($ftp_server);
64
+
$ftp = ftp_connect($ftp_server);
49
65

50
66
// login with username and password
51
-
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);
67
+
$login_result = ftp_login($ftp, $ftp_user_name, $ftp_user_pass);
52
68

53
69
// change directory to public_html
54
-
ftp_chdir($conn_id, 'public_html');
70
+
ftp_chdir($ftp, 'public_html');
55
71

56
72
// print current directory
57
-
echo ftp_pwd($conn_id); // /public_html
73
+
echo ftp_pwd($ftp); // /public_html
58
74

59
75
// close the connection
60
-
ftp_close($conn_id);
76
+
ftp_close($ftp);
61
77
?>
62
78
]]>
63
79
</programlisting>
...
...
@@ -74,7 +90,6 @@ ftp_close($conn_id);
74
90
</para>
75
91
</refsect1>
76
92
</refentry>
77
-

78
93
<!-- Keep this comment at the end of the file
79
94
Local variables:
80
95
mode: sgml
81
96