cvs: phpdoc /en/reference/ftp book.xml constants.xml examples.xml reference.xml setup.xml
| From: | Hannes Magnusson | Date: | Sat, 22 Dec 2007 00:43:05 +0000 |
| Subject: | cvs: phpdoc /en/reference/ftp book.xml constants.xml examples.xml reference.xml setup.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-717@lists.php.net to get a copy of this message | ||
bjori Sat Dec 22 00:43:05 2007 UTC
Modified files:
/phpdoc/en/reference/ftp book.xml examples.xml setup.xml
constants.xml reference.xml
Log:
MFB: Upgrade to the new-reference-structure
- (Created missing setup sections in setup.xml, if any)
- Moved the intro (the giant table) to book.xml
- Changed the intro ID from <extname>.intro to intro.<extname>
- Moved the constants entity to book.xml
- Changed constants.xml to be an appendix
- Moved the example to its own chapter (in examples.xml)
NOTE: The chapter ID is ftp.examples, the example itself does not have an ID
- Moved the requirements/configuration/resources sections to setup.xml
- Moved the configure entity to setup.xml
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ftp/book.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/ftp/book.xml diff -u /dev/null phpdoc/en/reference/ftp/book.xml:1.2 --- /dev/null Sat Dec 22 00:43:05 2007 +++ phpdoc/en/reference/ftp/book.xml Sat Dec 22 00:43:04 2007 @@ -0,0 +1,53 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.2 $ --> +<!-- Purpose: remote.other --> +<!-- Membership: bundled --> + +<book xml:id="book.ftp" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <title>FTP</title> + + <!-- {{{ preface --> + <preface xml:id="intro.ftp"> + &reftitle.intro; + <para> + The functions in this extension implement client access to file + servers speaking the File Transfer Protocol (FTP) as defined in + <link xlink:href="&url.rfc;959">&url.rfc;959</link>. This extension is + meant for detailed access to an FTP server providing a wide range + of control to the executing script. If you only wish to + read from or write to a file on an FTP server, consider using + the <link linkend="wrappers.ftp"><literal>ftp://</literal> wrapper</link> + with the <link linkend="ref.filesystem">filesystem functions</link> + which provide a simpler and more intuitive interface. + </para> + </preface> + <!-- }}} --> + + &reference.ftp.setup; + &reference.ftp.constants; + &reference.ftp.examples; + &reference.ftp.reference; + +</book> + +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-quote-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"../../../manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +--> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ftp/examples.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/ftp/examples.xml diff -u /dev/null phpdoc/en/reference/ftp/examples.xml:1.2 --- /dev/null Sat Dec 22 00:43:05 2007 +++ phpdoc/en/reference/ftp/examples.xml Sat Dec 22 00:43:04 2007 @@ -0,0 +1,69 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Revision: 1.2 $ --> + +<chapter xml:id="ftp.examples" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + &reftitle.examples; + <section xml:id="ftp.examples-basic"> + <para> + <example> + <title>FTP example</title> + <programlisting role="php"> +<![CDATA[ +<?php +// set up basic connection +$conn_id = ftp_connect($ftp_server); + +// login with username and password +$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass); + +// check connection +if ((!$conn_id) || (!$login_result)) { + echo "FTP connection has failed!"; + echo "Attempted to connect to $ftp_server for user $ftp_user_name"; + exit; + } else { + echo "Connected to $ftp_server, for user $ftp_user_name"; + } + +// upload the file +$upload = ftp_put($conn_id, $destination_file, $source_file, FTP_BINARY); + +// check upload status +if (!$upload) { + echo "FTP upload has failed!"; + } else { + echo "Uploaded $source_file to $ftp_server as $destination_file"; + } + +// close the FTP stream +ftp_close($conn_id); +?> +]]> + </programlisting> + </example> + </para> + </section> +</chapter> + +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-quote-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"../../../manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=xml +vi: ts=1 sw=1 +--> + + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ftp/setup.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/ftp/setup.xml diff -u /dev/null phpdoc/en/reference/ftp/setup.xml:1.2 --- /dev/null Sat Dec 22 00:43:05 2007 +++ phpdoc/en/reference/ftp/setup.xml Sat Dec 22 00:43:04 2007 @@ -0,0 +1,58 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.2 $ --> + +<chapter xml:id="ftp.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + &reftitle.setup; + + <!-- {{{ Requirements --> + <section xml:id="ftp.requirements"> + &reftitle.required; + &no.requirement; + </section> + <!-- }}} --> + + <!-- {{{ Installation --> + &reference.ftp.configure; + <!-- }}} --> + + <!-- {{{ Configuration --> + <section xml:id="ftp.configuration"> + &reftitle.runtime; + &no.config; + </section> + <!-- }}} --> + + <!-- {{{ Resources --> + <section xml:id="ftp.resources"> + &reftitle.resources; + <para> + This extension uses one resource type, which is the link identifier + of the FTP connection, returned by <function>ftp_connect</function> + or <function>ftp_ssl_connect</function>. + </para> + </section> + <!-- }}} --> + +</chapter> + +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-quote-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"../../../manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +--> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ftp/constants.xml?r1=1.6&r2=1.7&diff_format=u Index: phpdoc/en/reference/ftp/constants.xml diff -u phpdoc/en/reference/ftp/constants.xml:1.6 phpdoc/en/reference/ftp/constants.xml:1.7 --- phpdoc/en/reference/ftp/constants.xml:1.6 Wed Jun 20 22:24:28 2007 +++ phpdoc/en/reference/ftp/constants.xml Sat Dec 22 00:43:04 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<section xml:id="ftp.constants" xmlns="http://docbook.org/ns/docbook"> +<!-- $Revision: 1.7 $ --> +<appendix xml:id="ftp.constants" xmlns="http://docbook.org/ns/docbook"> &reftitle.constants; &extension.constants; <variablelist> @@ -113,7 +113,7 @@ </listitem> </varlistentry> </variablelist> -</section> +</appendix> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ftp/reference.xml?r1=1.14&r2=1.15&diff_format=u Index: phpdoc/en/reference/ftp/reference.xml diff -u phpdoc/en/reference/ftp/reference.xml:1.14 phpdoc/en/reference/ftp/reference.xml:1.15 --- phpdoc/en/reference/ftp/reference.xml:1.14 Mon Dec 10 17:06:03 2007 +++ phpdoc/en/reference/ftp/reference.xml Sat Dec 22 00:43:04 2007 @@ -1,93 +1,8 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.14 $ --> -<!-- Purpose: remote.other --> -<!-- Membership: bundled --> +<!-- $Revision: 1.15 $ --> <reference xml:id="ref.ftp" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <title>FTP Functions</title> - <titleabbrev>FTP</titleabbrev> - - <partintro> - <section xml:id="ftp.intro"> - &reftitle.intro; - <para> - The functions in this extension implement client access to file - servers speaking the File Transfer Protocol (FTP) as defined in - <link xlink:href="&url.rfc;959">&url.rfc;959</link>. This extension is - meant for detailed access to an FTP server providing a wide range - of control to the executing script. If you only wish to - read from or write to a file on an FTP server, consider using - the <link linkend="wrappers.ftp"><literal>ftp://</literal> wrapper</link> - with the <link linkend="ref.filesystem">filesystem functions</link> - which provide a simpler and more intuitive interface. - </para> - </section> - - <section xml:id="ftp.requirements"> - &reftitle.required; - &no.requirement; - </section> - - &reference.ftp.configure; - - <section xml:id="ftp.configuration"> - &reftitle.runtime; - &no.config; - </section> - - <section xml:id="ftp.resources"> - &reftitle.resources; - <para> - This extension uses one resource type, which is the link identifier - of the FTP connection, returned by <function>ftp_connect</function> - or <function>ftp_ssl_connect</function>. - </para> - </section> - - &reference.ftp.constants; - - <section xml:id="ftp.examples"> - &reftitle.examples; - <para> - <example> - <title>FTP example</title> - <programlisting role="php"> -<![CDATA[ -<?php -// set up basic connection -$conn_id = ftp_connect($ftp_server); - -// login with username and password -$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass); - -// check connection -if ((!$conn_id) || (!$login_result)) { - echo "FTP connection has failed!"; - echo "Attempted to connect to $ftp_server for user $ftp_user_name"; - exit; - } else { - echo "Connected to $ftp_server, for user $ftp_user_name"; - } - -// upload the file -$upload = ftp_put($conn_id, $destination_file, $source_file, FTP_BINARY); - -// check upload status -if (!$upload) { - echo "FTP upload has failed!"; - } else { - echo "Uploaded $source_file to $ftp_server as $destination_file"; - } - -// close the FTP stream -ftp_close($conn_id); -?> -]]> - </programlisting> - </example> - </para> - </section> - </partintro> + <title>FTP &Functions;</title> &reference.ftp.entities.functions; @@ -113,3 +28,4 @@ vim: et tw=78 syn=xml vi: ts=1 sw=1 --> +
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ftp/book.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/ftp/book.xml diff -u /dev/null phpdoc/en/reference/ftp/book.xml:1.2 --- /dev/null Sat Dec 22 00:43:05 2007 +++ phpdoc/en/reference/ftp/book.xml Sat Dec 22 00:43:04 2007 @@ -0,0 +1,53 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.2 $ --> +<!-- Purpose: remote.other --> +<!-- Membership: bundled --> + +<book xml:id="book.ftp" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <title>FTP</title> + + <!-- {{{ preface --> + <preface xml:id="intro.ftp"> + &reftitle.intro; + <para> + The functions in this extension implement client access to file + servers speaking the File Transfer Protocol (FTP) as defined in + <link xlink:href="&url.rfc;959">&url.rfc;959</link>. This extension is + meant for detailed access to an FTP server providing a wide range + of control to the executing script. If you only wish to + read from or write to a file on an FTP server, consider using + the <link linkend="wrappers.ftp"><literal>ftp://</literal> wrapper</link> + with the <link linkend="ref.filesystem">filesystem functions</link> + which provide a simpler and more intuitive interface. + </para> + </preface> + <!-- }}} --> + + &reference.ftp.setup; + &reference.ftp.constants; + &reference.ftp.examples; + &reference.ftp.reference; + +</book> + +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-quote-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"../../../manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +--> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ftp/examples.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/ftp/examples.xml diff -u /dev/null phpdoc/en/reference/ftp/examples.xml:1.2 --- /dev/null Sat Dec 22 00:43:05 2007 +++ phpdoc/en/reference/ftp/examples.xml Sat Dec 22 00:43:04 2007 @@ -0,0 +1,69 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Revision: 1.2 $ --> + +<chapter xml:id="ftp.examples" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + &reftitle.examples; + <section xml:id="ftp.examples-basic"> + <para> + <example> + <title>FTP example</title> + <programlisting role="php"> +<![CDATA[ +<?php +// set up basic connection +$conn_id = ftp_connect($ftp_server); + +// login with username and password +$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass); + +// check connection +if ((!$conn_id) || (!$login_result)) { + echo "FTP connection has failed!"; + echo "Attempted to connect to $ftp_server for user $ftp_user_name"; + exit; + } else { + echo "Connected to $ftp_server, for user $ftp_user_name"; + } + +// upload the file +$upload = ftp_put($conn_id, $destination_file, $source_file, FTP_BINARY); + +// check upload status +if (!$upload) { + echo "FTP upload has failed!"; + } else { + echo "Uploaded $source_file to $ftp_server as $destination_file"; + } + +// close the FTP stream +ftp_close($conn_id); +?> +]]> + </programlisting> + </example> + </para> + </section> +</chapter> + +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-quote-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"../../../manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=xml +vi: ts=1 sw=1 +--> + + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ftp/setup.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/ftp/setup.xml diff -u /dev/null phpdoc/en/reference/ftp/setup.xml:1.2 --- /dev/null Sat Dec 22 00:43:05 2007 +++ phpdoc/en/reference/ftp/setup.xml Sat Dec 22 00:43:04 2007 @@ -0,0 +1,58 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.2 $ --> + +<chapter xml:id="ftp.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + &reftitle.setup; + + <!-- {{{ Requirements --> + <section xml:id="ftp.requirements"> + &reftitle.required; + &no.requirement; + </section> + <!-- }}} --> + + <!-- {{{ Installation --> + &reference.ftp.configure; + <!-- }}} --> + + <!-- {{{ Configuration --> + <section xml:id="ftp.configuration"> + &reftitle.runtime; + &no.config; + </section> + <!-- }}} --> + + <!-- {{{ Resources --> + <section xml:id="ftp.resources"> + &reftitle.resources; + <para> + This extension uses one resource type, which is the link identifier + of the FTP connection, returned by <function>ftp_connect</function> + or <function>ftp_ssl_connect</function>. + </para> + </section> + <!-- }}} --> + +</chapter> + +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-quote-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"../../../manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +--> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ftp/constants.xml?r1=1.6&r2=1.7&diff_format=u Index: phpdoc/en/reference/ftp/constants.xml diff -u phpdoc/en/reference/ftp/constants.xml:1.6 phpdoc/en/reference/ftp/constants.xml:1.7 --- phpdoc/en/reference/ftp/constants.xml:1.6 Wed Jun 20 22:24:28 2007 +++ phpdoc/en/reference/ftp/constants.xml Sat Dec 22 00:43:04 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<section xml:id="ftp.constants" xmlns="http://docbook.org/ns/docbook"> +<!-- $Revision: 1.7 $ --> +<appendix xml:id="ftp.constants" xmlns="http://docbook.org/ns/docbook"> &reftitle.constants; &extension.constants; <variablelist> @@ -113,7 +113,7 @@ </listitem> </varlistentry> </variablelist> -</section> +</appendix> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ftp/reference.xml?r1=1.14&r2=1.15&diff_format=u Index: phpdoc/en/reference/ftp/reference.xml diff -u phpdoc/en/reference/ftp/reference.xml:1.14 phpdoc/en/reference/ftp/reference.xml:1.15 --- phpdoc/en/reference/ftp/reference.xml:1.14 Mon Dec 10 17:06:03 2007 +++ phpdoc/en/reference/ftp/reference.xml Sat Dec 22 00:43:04 2007 @@ -1,93 +1,8 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.14 $ --> -<!-- Purpose: remote.other --> -<!-- Membership: bundled --> +<!-- $Revision: 1.15 $ --> <reference xml:id="ref.ftp" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <title>FTP Functions</title> - <titleabbrev>FTP</titleabbrev> - - <partintro> - <section xml:id="ftp.intro"> - &reftitle.intro; - <para> - The functions in this extension implement client access to file - servers speaking the File Transfer Protocol (FTP) as defined in - <link xlink:href="&url.rfc;959">&url.rfc;959</link>. This extension is - meant for detailed access to an FTP server providing a wide range - of control to the executing script. If you only wish to - read from or write to a file on an FTP server, consider using - the <link linkend="wrappers.ftp"><literal>ftp://</literal> wrapper</link> - with the <link linkend="ref.filesystem">filesystem functions</link> - which provide a simpler and more intuitive interface. - </para> - </section> - - <section xml:id="ftp.requirements"> - &reftitle.required; - &no.requirement; - </section> - - &reference.ftp.configure; - - <section xml:id="ftp.configuration"> - &reftitle.runtime; - &no.config; - </section> - - <section xml:id="ftp.resources"> - &reftitle.resources; - <para> - This extension uses one resource type, which is the link identifier - of the FTP connection, returned by <function>ftp_connect</function> - or <function>ftp_ssl_connect</function>. - </para> - </section> - - &reference.ftp.constants; - - <section xml:id="ftp.examples"> - &reftitle.examples; - <para> - <example> - <title>FTP example</title> - <programlisting role="php"> -<![CDATA[ -<?php -// set up basic connection -$conn_id = ftp_connect($ftp_server); - -// login with username and password -$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass); - -// check connection -if ((!$conn_id) || (!$login_result)) { - echo "FTP connection has failed!"; - echo "Attempted to connect to $ftp_server for user $ftp_user_name"; - exit; - } else { - echo "Connected to $ftp_server, for user $ftp_user_name"; - } - -// upload the file -$upload = ftp_put($conn_id, $destination_file, $source_file, FTP_BINARY); - -// check upload status -if (!$upload) { - echo "FTP upload has failed!"; - } else { - echo "Uploaded $source_file to $ftp_server as $destination_file"; - } - -// close the FTP stream -ftp_close($conn_id); -?> -]]> - </programlisting> - </example> - </para> - </section> - </partintro> + <title>FTP &Functions;</title> &reference.ftp.entities.functions; @@ -113,3 +28,4 @@ vim: et tw=78 syn=xml vi: ts=1 sw=1 --> +