Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

cvs: phpdoc /en/reference/ftp/functions ftp-chmod.xml ftp-close.xml
dave		Thu Jul 29 01:54:45 2004 EDT

Modified files:
/phpdoc/en/reference/ftp/functions	ftp-chmod.xml ftp-close.xml
Log:
- proto fixes.


http://cvs.php.net/diff.php/phpdoc/...>
&r2=1.5&ty=u
Index: phpdoc/en/reference/ftp/functions/ftp-chmod.xml
diff -u phpdoc/en/reference/ftp/functions/ftp-chmod.xml:1.4 phpdoc/en/refere
nce/ftp/functions/ftp-chmod.xml:1.5
--- phpdoc/en/reference/ftp/functions/ftp-chmod.xml:1.4	Wed Jun  9 08:10:05 
2004
+++ phpdoc/en/reference/ftp/functions/ftp-chmod.xml	Thu Jul 29 01:54:45 2004
@@ -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></methodp
aram>
<methodparam><type>int</type><parameter>mode</parameter></methodparam>
<methodparam><type>string</type><parameter>filename</parameter></methodparam
>
@@ -19,6 +19,9 @@
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>
<programlisting role="php">
@@ -33,7 +36,7 @@
$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";
http://cvs.php.net/diff.php/phpdoc/...>
&r2=1.6&ty=u
Index: phpdoc/en/reference/ftp/functions/ftp-close.xml
diff -u phpdoc/en/reference/ftp/functions/ftp-close.xml:1.5 phpdoc/en/refere
nce/ftp/functions/ftp-close.xml:1.6
--- phpdoc/en/reference/ftp/functions/ftp-close.xml:1.5	Fri Dec 19 09:40:54 
2003
+++ phpdoc/en/reference/ftp/functions/ftp-close.xml	Thu Jul 29 01:54:45 2004
@@ -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></methodp
aram>
</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>

Report this thread to moderator Post Follow-up to this message
Old Post
Dave
07-29-04 08:55 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Documentation archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 04:26 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.