diff --git a/reference/ftp/functions/ftp-chdir.xml b/reference/ftp/functions/ftp-chdir.xml
index 53539b6a43..e00de19580 100644
--- a/reference/ftp/functions/ftp-chdir.xml
+++ b/reference/ftp/functions/ftp-chdir.xml
@@ -1,5 +1,5 @@
-
+
@@ -14,11 +14,39 @@
stringdirectory
- Changes to the specified directory.
+ Changes the current directory to the specified directory.
&return.success;
+
+ ftp_chdir example
+
+
+]]>
+
+
diff --git a/reference/ftp/functions/ftp-connect.xml b/reference/ftp/functions/ftp-connect.xml
index a5f48bbd05..dbe087fec7 100644
--- a/reference/ftp/functions/ftp-connect.xml
+++ b/reference/ftp/functions/ftp-connect.xml
@@ -1,5 +1,5 @@
-
+
@@ -19,7 +19,9 @@
ftp_connect opens an FTP connection to the
- specified host. The port
+ specified host. host
+ shouldn't have any trailing slashes and shouldn't be prefixed with
+ ftp://. The port
parameter specifies an alternate port to connect to. If it is
omitted or set to zero, then the default FTP port, 21, will be used.
@@ -35,6 +37,24 @@
+
+ ftp_connect example
+
+
+]]>
+
+
+
+ See also ftp_close.
+
diff --git a/reference/ftp/functions/ftp-login.xml b/reference/ftp/functions/ftp-login.xml
index 098de63845..e7004ee91b 100644
--- a/reference/ftp/functions/ftp-login.xml
+++ b/reference/ftp/functions/ftp-login.xml
@@ -1,5 +1,5 @@
-
+
@@ -20,6 +20,30 @@
&return.success;
+
+ ftp_login example
+
+
+]]>
+
+
diff --git a/reference/ftp/functions/ftp-mkdir.xml b/reference/ftp/functions/ftp-mkdir.xml
index 22a133e8f1..7cba0b73d6 100644
--- a/reference/ftp/functions/ftp-mkdir.xml
+++ b/reference/ftp/functions/ftp-mkdir.xml
@@ -1,5 +1,5 @@
-
+
@@ -19,6 +19,9 @@
Returns the newly created directory name on success or &false; on error.
+
+ See also ftp_rmdir.
+
diff --git a/reference/ftp/functions/ftp-nlist.xml b/reference/ftp/functions/ftp-nlist.xml
index 808652c716..3291196f65 100644
--- a/reference/ftp/functions/ftp-nlist.xml
+++ b/reference/ftp/functions/ftp-nlist.xml
@@ -1,5 +1,5 @@
-
+
@@ -17,6 +17,36 @@
Returns an array of filenames from the specified directory
on success or &false; on error.
+
+ ftp_nlist example
+
+\n";
+}
+
+?>
+]]>
+
+
+
+ See also ftp_rawlist.
+
diff --git a/reference/ftp/functions/ftp-rawlist.xml b/reference/ftp/functions/ftp-rawlist.xml
index 7dba764e05..9e9507252b 100644
--- a/reference/ftp/functions/ftp-rawlist.xml
+++ b/reference/ftp/functions/ftp-rawlist.xml
@@ -1,5 +1,5 @@
-
+
@@ -20,6 +20,9 @@
system type identifier returned by ftp_systype
can be used to determine how the results should be interpreted.
+
+ See also ftp_nlist.
+
diff --git a/reference/ftp/functions/ftp-rmdir.xml b/reference/ftp/functions/ftp-rmdir.xml
index 07c2931259..769d5753d6 100644
--- a/reference/ftp/functions/ftp-rmdir.xml
+++ b/reference/ftp/functions/ftp-rmdir.xml
@@ -1,5 +1,5 @@
-
+
@@ -15,10 +15,15 @@
Removes the specified directory.
+ directory must be either an absolute or relative
+ path to an empty directory.
&return.success;
+
+ See also ftp_mkdir.
+
diff --git a/reference/ftp/functions/ftp-size.xml b/reference/ftp/functions/ftp-size.xml
index 03fe3db3f0..7b029ea39d 100644
--- a/reference/ftp/functions/ftp-size.xml
+++ b/reference/ftp/functions/ftp-size.xml
@@ -1,5 +1,5 @@
-
+
@@ -14,13 +14,17 @@
stringremote_file
- ftp_size returns the size of a file in bytes. If an
- error occurs, of if the file does not exist, -1 is returned. Not
- all servers support this feature.
+ ftp_size returns the size of a
+ remote_file in bytes. If an error occurs, or if the
+ given file does not exist, or is a directory, -1 is returned. Not all
+ servers support this feature.
Returns the file size on success, or -1 on error.
+
+ See also ftp_rawlist.
+