diff --git a/reference/ftp/functions/ftp-chmod.xml b/reference/ftp/functions/ftp-chmod.xml index caea6a064f..3166fc3640 100644 --- a/reference/ftp/functions/ftp-chmod.xml +++ b/reference/ftp/functions/ftp-chmod.xml @@ -1,5 +1,5 @@ - + ftp_chmod @@ -8,7 +8,7 @@ Description - stringftp_chmod + intftp_chmod resourceftp_stream intmode stringfilename @@ -18,6 +18,9 @@ filename to mode given as an octal value. + + Returns mode on success, or &false; on failure. + <function>ftp_chmod</function> example @@ -33,7 +36,7 @@ $conn_id = ftp_connect($ftp_server); $login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass); // try to chmod $file to 644 -if (ftp_chmod($conn_id, 0644, $file)) { +if (ftp_chmod($conn_id, 0644, $file) !== false) { echo "$file chmoded successfully to 644\n"; } else { echo "could not chmod $file\n"; diff --git a/reference/ftp/functions/ftp-close.xml b/reference/ftp/functions/ftp-close.xml index 98e9af3c98..3ca4df12d2 100644 --- a/reference/ftp/functions/ftp-close.xml +++ b/reference/ftp/functions/ftp-close.xml @@ -1,5 +1,5 @@ - + @@ -9,15 +9,18 @@ Description - voidftp_close + boolftp_close resourceftp_stream - + ftp_close closes ftp_stream and releases the resource. After calling this function, you can no longer use the FTP connection and must create a new one with ftp_connect. - + + + &return.success; + <function>ftp_close</function> example