cvs: phpdoc /en/reference/ftp/functions ftp-alloc.xml ftp-site.xml ftp-ssl-connect.xml

From: Date: Thu, 01 Jan 2009 12:09:16 +0000
Subject: cvs: phpdoc /en/reference/ftp/functions ftp-alloc.xml ftp-site.xml ftp-ssl-connect.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-2900@lists.php.net to get a copy of this message
wiesemann Thu Jan 1 12:09:16 2009 UTC Modified files: /phpdoc/en/reference/ftp/functions ftp-alloc.xml ftp-ssl-connect.xml ftp-site.xml Log: - typo fixes (size, statically) - comment style fixes (single line comments with "//" instead of "/* */") http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ftp/functions/ftp-alloc.xml?r1=1.6&r2=1.7&diff_format=u Index: phpdoc/en/reference/ftp/functions/ftp-alloc.xml diff -u phpdoc/en/reference/ftp/functions/ftp-alloc.xml:1.6 phpdoc/en/reference/ftp/functions/ftp-alloc.xml:1.7 --- phpdoc/en/reference/ftp/functions/ftp-alloc.xml:1.6 Wed Jun 20 22:24:28 2007 +++ phpdoc/en/reference/ftp/functions/ftp-alloc.xml Thu Jan 1 12:09:16 2009 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> +<!-- $Revision: 1.7 $ --> <refentry xml:id="function.ftp-alloc" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>ftp_alloc</refname> @@ -42,7 +42,7 @@ </listitem> </varlistentry> <varlistentry> - <term><parameter>filezise</parameter></term> + <term><parameter>filesize</parameter></term> <listitem> <para> The number of bytes to allocate. @@ -78,7 +78,7 @@ $file = "/home/user/myfile"; -/* connect to the server */ +// connect to the server $conn_id = ftp_connect('ftp.example.com'); $login_result = ftp_login($conn_id, 'anonymous', 'user@example.com'); http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ftp/functions/ftp-ssl-connect.xml?r1=1.9&r2=1.10&diff_format=u Index: phpdoc/en/reference/ftp/functions/ftp-ssl-connect.xml diff -u phpdoc/en/reference/ftp/functions/ftp-ssl-connect.xml:1.9 phpdoc/en/reference/ftp/functions/ftp-ssl-connect.xml:1.10 --- phpdoc/en/reference/ftp/functions/ftp-ssl-connect.xml:1.9 Sun Nov 9 20:16:02 2008 +++ phpdoc/en/reference/ftp/functions/ftp-ssl-connect.xml Thu Jan 1 12:09:16 2009 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.9 $ --> +<!-- $Revision: 1.10 $ --> <refentry xml:id="function.ftp-ssl-connect" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>ftp_ssl_connect</refname> @@ -20,11 +20,11 @@ <note> <title>Why this function may not exist</title> <para> - <function>ftp_ssl_connect</function> is only available if both - the ftp module and the <link linkend="ref.openssl">OpenSSL</link> - support is built staticlly into php, this means that on Windows this - function will be undefined in the official PHP builds. To make this - function available on Windows you must compile your own PHP binaries. + <function>ftp_ssl_connect</function> is only available if both + the ftp module and the <link linkend="ref.openssl">OpenSSL</link> + support is built statically into php, this means that on Windows this + function will be undefined in the official PHP builds. To make this + function available on Windows you must compile your own PHP binaries. </para> </note> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ftp/functions/ftp-site.xml?r1=1.9&r2=1.10&diff_format=u Index: phpdoc/en/reference/ftp/functions/ftp-site.xml diff -u phpdoc/en/reference/ftp/functions/ftp-site.xml:1.9 phpdoc/en/reference/ftp/functions/ftp-site.xml:1.10 --- phpdoc/en/reference/ftp/functions/ftp-site.xml:1.9 Wed Jun 20 22:24:28 2007 +++ phpdoc/en/reference/ftp/functions/ftp-site.xml Thu Jan 1 12:09:16 2009 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.9 $ --> +<!-- $Revision: 1.10 $ --> <refentry xml:id="function.ftp-site" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>ftp_site</refname> @@ -60,14 +60,14 @@ <programlisting role="php"> <![CDATA[ <?php -/* Connect to FTP server */ +// Connect to FTP server $conn = ftp_connect('ftp.example.com'); if (!$conn) die('Unable to connect to ftp.example.com'); -/* Login as "user" with password "pass" */ +// Login as "user" with password "pass" if (!ftp_login($conn, 'user', 'pass')) die('Error logging into ftp.example.com'); -/* Issue: "SITE CHMOD 0600 /home/user/privatefile" command to ftp server */ +// Issue: "SITE CHMOD 0600 /home/user/privatefile" command to ftp server if (ftp_site($conn, 'CHMOD 0600 /home/user/privatefile')) { echo "Command executed successfully.\n"; } else {

« previous php.doc.cvs (#2900) next »