- proto fixes.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@164610 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Dave Barr 2004-07-29 05:54:45 +00:00
parent 109ca4c3c8
commit cea9297342
2 changed files with 13 additions and 7 deletions

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.4 $ -->
<!-- $Revision: 1.5 $ -->
<refentry id="function.ftp-chmod">
<refnamediv>
<refname>ftp_chmod</refname>
@ -8,7 +8,7 @@
<refsect1>
<title>Description</title>
<methodsynopsis>
<type>string</type><methodname>ftp_chmod</methodname>
<type>int</type><methodname>ftp_chmod</methodname>
<methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam>
<methodparam><type>int</type><parameter>mode</parameter></methodparam>
<methodparam><type>string</type><parameter>filename</parameter></methodparam>
@ -18,6 +18,9 @@
<parameter>filename</parameter> to <parameter>mode</parameter>
given as an <emphasis>octal</emphasis> value.
</para>
<para>
Returns <parameter>mode</parameter> on success, or &false; on failure.
</para>
<para>
<example>
<title><function>ftp_chmod</function> example</title>
@ -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";

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.5 $ -->
<!-- $Revision: 1.6 $ -->
<!-- splitted from ./en/functions/ftp.xml, last change in rev 1.34 -->
<refentry id="function.ftp-close">
<refnamediv>
@ -9,15 +9,18 @@
<refsect1>
<title>Description</title>
<methodsynopsis>
<type>void</type><methodname>ftp_close</methodname>
<type>bool</type><methodname>ftp_close</methodname>
<methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam>
</methodsynopsis>
<simpara>
<para>
<function>ftp_close</function> closes <parameter>ftp_stream</parameter>
and releases the <type>resource</type>. After calling this function,
you can no longer use the FTP connection and must create a new one
with <function>ftp_connect</function>.
</simpara>
</para>
<para>
&return.success;
</para>
<para>
<example>
<title><function>ftp_close</function> example</title>