cvs: phpdoc /en/reference/wddx book.xml constants.xml examples.xml reference.xml setup.xml
| From: | Philip Olson | Date: | Fri, 14 Dec 2007 03:39:08 +0000 |
| Subject: | cvs: phpdoc /en/reference/wddx book.xml constants.xml examples.xml reference.xml setup.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-642@lists.php.net to get a copy of this message | ||
philip Fri Dec 14 03:39:08 2007 UTC
Modified files:
/phpdoc/en/reference/wddx book.xml setup.xml constants.xml
examples.xml reference.xml
Log:
MFB: Upgrade to the new-reference-structure
- Split reference.xml into book.xml and setup.xml
- Moved from reference.xml to book.xml:
- The intro text (partintro), and link to the new constant and example pages
- Moved from reference.xml to setup.xml:
- The rest: requirements, installation, configuration, and resources
- Changed the constants section to be an <appendix>
- Changed the intro ID from <extname>.intro to intro.<extname>
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/wddx/book.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/wddx/book.xml diff -u /dev/null phpdoc/en/reference/wddx/book.xml:1.2 --- /dev/null Fri Dec 14 03:39:07 2007 +++ phpdoc/en/reference/wddx/book.xml Fri Dec 14 03:39:07 2007 @@ -0,0 +1,46 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.2 $ --> +<!-- Purpose: webservice --> +<!-- Membership: bundled, external --> + +<book xml:id="book.wddx" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <title>WDDX</title> + + <!-- {{{ preface --> + <preface xml:id="intro.wddx"> + &reftitle.intro; + <para> + These functions are intended for work with <link + xlink:href="&url.wddx;">WDDX</link>. + </para> + </preface> + <!-- }}} --> + + &reference.wddx.setup; + &reference.wddx.constants; + &reference.wddx.examples; + &reference.wddx.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/wddx/setup.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/wddx/setup.xml diff -u /dev/null phpdoc/en/reference/wddx/setup.xml:1.2 --- /dev/null Fri Dec 14 03:39:07 2007 +++ phpdoc/en/reference/wddx/setup.xml Fri Dec 14 03:39:07 2007 @@ -0,0 +1,60 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.2 $ --> + +<chapter xml:id="wddx.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + &reftitle.setup; + + <!-- {{{ Requirements --> + <section xml:id="wddx.requirements"> + &reftitle.required; + <para> + In order to use WDDX, you will need to install the expat library + (which comes with Apache 1.3.7 or higher). + </para> + </section> + <!-- }}} --> + + <!-- {{{ Installation --> + &reference.wddx.configure; + <!-- }}} --> + + <!-- {{{ Configuration --> + <section xml:id="wddx.configuration"> + &reftitle.runtime; + &no.config; + </section> + <!-- }}} --> + + <!-- {{{ Resources --> + <section xml:id="wddx.resources"> + &reftitle.resources; + <para> + This extension defines a WDDX packet identifier returned by + <function>wddx_packet_start</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/wddx/constants.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/wddx/constants.xml diff -u /dev/null phpdoc/en/reference/wddx/constants.xml:1.2 --- /dev/null Fri Dec 14 03:39:07 2007 +++ phpdoc/en/reference/wddx/constants.xml Fri Dec 14 03:39:07 2007 @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.2 $ --> + +<appendix xml:id="wddx.constants" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + &reftitle.constants; + &no.constants; +</appendix> + +<!-- 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/wddx/examples.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/wddx/examples.xml diff -u /dev/null phpdoc/en/reference/wddx/examples.xml:1.2 --- /dev/null Fri Dec 14 03:39:08 2007 +++ phpdoc/en/reference/wddx/examples.xml Fri Dec 14 03:39:07 2007 @@ -0,0 +1,96 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.2 $ --> + +<chapter xml:id="wddx.examples" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + &reftitle.examples; + <section xml:id="wddx.examples-serialize"> + <para> + All the functions that serialize variables use the first + element of an array to determine whether the array is to be + serialized into an array or structure. If the first element has + string key, then it is serialized into a structure, otherwise, + into an array. + </para> + + <example> + <title>Serializing a single value with WDDX</title> + <programlisting role="php"> +<![CDATA[ +<?php +echo wddx_serialize_value("PHP to WDDX packet example", "PHP packet"); +?> +]]> + </programlisting> + <para> + This example will produce: + </para> + <screen> +<![CDATA[ +<wddxPacket version='1.0'><header comment='PHP packet'/><data> +<string>PHP to WDDX packet example</string></data></wddxPacket> +]]> + </screen> + </example> + + <example> + <title>Using incremental packets with WDDX</title> + <programlisting role="php"> +<![CDATA[ +<?php +$pi = 3.1415926; +$packet_id = wddx_packet_start("PHP"); +wddx_add_vars($packet_id, "pi"); + +/* Suppose $cities came from database */ +$cities = array("Austin", "Novato", "Seattle"); +wddx_add_vars($packet_id, "cities"); + +$packet = wddx_packet_end($packet_id); +echo $packet; +?> +]]> + </programlisting> + <para> + This example will produce: + </para> + <screen> +<![CDATA[ +<wddxPacket version='1.0'><header comment='PHP'/><data><struct> +<var name='pi'><number>3.1415926</number></var><var name='cities'> +<array length='3'><string>Austin</string><string>Novato</string> +<string>Seattle</string></array></var></struct></data></wddxPacket> +]]> + </screen> + </example> + + <note> + <para> + If you want to serialize non-ASCII characters you have to convert + your data to UTF-8 first (see <function>utf8_encode</function> and + <function>iconv</function>). + </para> + </note> + </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/wddx/reference.xml?r1=1.15&r2=1.16&diff_format=u Index: phpdoc/en/reference/wddx/reference.xml diff -u phpdoc/en/reference/wddx/reference.xml:1.15 phpdoc/en/reference/wddx/reference.xml:1.16 --- phpdoc/en/reference/wddx/reference.xml:1.15 Mon Dec 10 17:06:10 2007 +++ phpdoc/en/reference/wddx/reference.xml Fri Dec 14 03:39:07 2007 @@ -1,123 +1,12 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.15 $ --> -<!-- Purpose: webservice --> -<!-- Membership: bundled, external --> +<!-- $Revision: 1.16 $ --> - <reference xml:id="ref.wddx" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <title>WDDX Functions</title> - <titleabbrev>WDDX</titleabbrev> - - <partintro> - <section xml:id="wddx.intro"> - &reftitle.intro; - <para> - These functions are intended for work with <link - xlink:href="&url.wddx;">WDDX</link>. - </para> - </section> - - <section xml:id="wddx.requirements"> - &reftitle.required; - <para> - In order to use WDDX, you will need to install the expat library - (which comes with Apache 1.3.7 or higher). - </para> - </section> - - &reference.wddx.configure; - - <section xml:id="wddx.configuration"> - &reftitle.runtime; - &no.config; - </section> +<reference xml:id="ref.wddx" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <title>WDDX &Functions;</title> - <section xml:id="wddx.resources"> - &reftitle.resources; - <para> - This extension defines a WDDX packet identifier returned by - <function>wddx_packet_start</function>. - </para> - </section> + &reference.wddx.entities.functions; - <section xml:id="wddx.constants"> - &reftitle.constants; - &no.constants; - </section> - - <section xml:id="wddx.examples"> - &reftitle.examples; - <para> - All the functions that serialize variables use the first - element of an array to determine whether the array is to be - serialized into an array or structure. If the first element has - string key, then it is serialized into a structure, otherwise, - into an array. - </para> - - <example> - <title>Serializing a single value with WDDX</title> - <programlisting role="php"> -<![CDATA[ -<?php -echo wddx_serialize_value("PHP to WDDX packet example", "PHP packet"); -?> -]]> - </programlisting> - <para> - This example will produce: - </para> - <screen> -<![CDATA[ -<wddxPacket version='1.0'><header comment='PHP packet'/><data> -<string>PHP to WDDX packet example</string></data></wddxPacket> -]]> - </screen> - </example> - - <example> - <title>Using incremental packets with WDDX</title> - <programlisting role="php"> -<![CDATA[ -<?php -$pi = 3.1415926; -$packet_id = wddx_packet_start("PHP"); -wddx_add_vars($packet_id, "pi"); - -/* Suppose $cities came from database */ -$cities = array("Austin", "Novato", "Seattle"); -wddx_add_vars($packet_id, "cities"); - -$packet = wddx_packet_end($packet_id); -echo $packet; -?> -]]> - </programlisting> - <para> - This example will produce: - </para> - <screen> -<![CDATA[ -<wddxPacket version='1.0'><header comment='PHP'/><data><struct> -<var name='pi'><number>3.1415926</number></var><var name='cities'> -<array length='3'><string>Austin</string><string>Novato</string> -<string>Seattle</string></array></var></struct></data></wddxPacket> -]]> - </screen> - </example> - - <note> - <para> - If you want to serialize non-ASCII characters you have to convert - your data to UTF-8 first (see <function>utf8_encode</function> and - <function>iconv</function>). - </para> - </note> - </section> - </partintro> - -&reference.wddx.entities.functions; - - </reference> +</reference> <!-- Keep this comment at the end of the file Local variables:
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/wddx/book.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/wddx/book.xml diff -u /dev/null phpdoc/en/reference/wddx/book.xml:1.2 --- /dev/null Fri Dec 14 03:39:07 2007 +++ phpdoc/en/reference/wddx/book.xml Fri Dec 14 03:39:07 2007 @@ -0,0 +1,46 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.2 $ --> +<!-- Purpose: webservice --> +<!-- Membership: bundled, external --> + +<book xml:id="book.wddx" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <title>WDDX</title> + + <!-- {{{ preface --> + <preface xml:id="intro.wddx"> + &reftitle.intro; + <para> + These functions are intended for work with <link + xlink:href="&url.wddx;">WDDX</link>. + </para> + </preface> + <!-- }}} --> + + &reference.wddx.setup; + &reference.wddx.constants; + &reference.wddx.examples; + &reference.wddx.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/wddx/setup.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/wddx/setup.xml diff -u /dev/null phpdoc/en/reference/wddx/setup.xml:1.2 --- /dev/null Fri Dec 14 03:39:07 2007 +++ phpdoc/en/reference/wddx/setup.xml Fri Dec 14 03:39:07 2007 @@ -0,0 +1,60 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.2 $ --> + +<chapter xml:id="wddx.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + &reftitle.setup; + + <!-- {{{ Requirements --> + <section xml:id="wddx.requirements"> + &reftitle.required; + <para> + In order to use WDDX, you will need to install the expat library + (which comes with Apache 1.3.7 or higher). + </para> + </section> + <!-- }}} --> + + <!-- {{{ Installation --> + &reference.wddx.configure; + <!-- }}} --> + + <!-- {{{ Configuration --> + <section xml:id="wddx.configuration"> + &reftitle.runtime; + &no.config; + </section> + <!-- }}} --> + + <!-- {{{ Resources --> + <section xml:id="wddx.resources"> + &reftitle.resources; + <para> + This extension defines a WDDX packet identifier returned by + <function>wddx_packet_start</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/wddx/constants.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/wddx/constants.xml diff -u /dev/null phpdoc/en/reference/wddx/constants.xml:1.2 --- /dev/null Fri Dec 14 03:39:07 2007 +++ phpdoc/en/reference/wddx/constants.xml Fri Dec 14 03:39:07 2007 @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.2 $ --> + +<appendix xml:id="wddx.constants" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + &reftitle.constants; + &no.constants; +</appendix> + +<!-- 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/wddx/examples.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/wddx/examples.xml diff -u /dev/null phpdoc/en/reference/wddx/examples.xml:1.2 --- /dev/null Fri Dec 14 03:39:08 2007 +++ phpdoc/en/reference/wddx/examples.xml Fri Dec 14 03:39:07 2007 @@ -0,0 +1,96 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.2 $ --> + +<chapter xml:id="wddx.examples" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + &reftitle.examples; + <section xml:id="wddx.examples-serialize"> + <para> + All the functions that serialize variables use the first + element of an array to determine whether the array is to be + serialized into an array or structure. If the first element has + string key, then it is serialized into a structure, otherwise, + into an array. + </para> + + <example> + <title>Serializing a single value with WDDX</title> + <programlisting role="php"> +<![CDATA[ +<?php +echo wddx_serialize_value("PHP to WDDX packet example", "PHP packet"); +?> +]]> + </programlisting> + <para> + This example will produce: + </para> + <screen> +<![CDATA[ +<wddxPacket version='1.0'><header comment='PHP packet'/><data> +<string>PHP to WDDX packet example</string></data></wddxPacket> +]]> + </screen> + </example> + + <example> + <title>Using incremental packets with WDDX</title> + <programlisting role="php"> +<![CDATA[ +<?php +$pi = 3.1415926; +$packet_id = wddx_packet_start("PHP"); +wddx_add_vars($packet_id, "pi"); + +/* Suppose $cities came from database */ +$cities = array("Austin", "Novato", "Seattle"); +wddx_add_vars($packet_id, "cities"); + +$packet = wddx_packet_end($packet_id); +echo $packet; +?> +]]> + </programlisting> + <para> + This example will produce: + </para> + <screen> +<![CDATA[ +<wddxPacket version='1.0'><header comment='PHP'/><data><struct> +<var name='pi'><number>3.1415926</number></var><var name='cities'> +<array length='3'><string>Austin</string><string>Novato</string> +<string>Seattle</string></array></var></struct></data></wddxPacket> +]]> + </screen> + </example> + + <note> + <para> + If you want to serialize non-ASCII characters you have to convert + your data to UTF-8 first (see <function>utf8_encode</function> and + <function>iconv</function>). + </para> + </note> + </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/wddx/reference.xml?r1=1.15&r2=1.16&diff_format=u Index: phpdoc/en/reference/wddx/reference.xml diff -u phpdoc/en/reference/wddx/reference.xml:1.15 phpdoc/en/reference/wddx/reference.xml:1.16 --- phpdoc/en/reference/wddx/reference.xml:1.15 Mon Dec 10 17:06:10 2007 +++ phpdoc/en/reference/wddx/reference.xml Fri Dec 14 03:39:07 2007 @@ -1,123 +1,12 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.15 $ --> -<!-- Purpose: webservice --> -<!-- Membership: bundled, external --> +<!-- $Revision: 1.16 $ --> - <reference xml:id="ref.wddx" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <title>WDDX Functions</title> - <titleabbrev>WDDX</titleabbrev> - - <partintro> - <section xml:id="wddx.intro"> - &reftitle.intro; - <para> - These functions are intended for work with <link - xlink:href="&url.wddx;">WDDX</link>. - </para> - </section> - - <section xml:id="wddx.requirements"> - &reftitle.required; - <para> - In order to use WDDX, you will need to install the expat library - (which comes with Apache 1.3.7 or higher). - </para> - </section> - - &reference.wddx.configure; - - <section xml:id="wddx.configuration"> - &reftitle.runtime; - &no.config; - </section> +<reference xml:id="ref.wddx" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <title>WDDX &Functions;</title> - <section xml:id="wddx.resources"> - &reftitle.resources; - <para> - This extension defines a WDDX packet identifier returned by - <function>wddx_packet_start</function>. - </para> - </section> + &reference.wddx.entities.functions; - <section xml:id="wddx.constants"> - &reftitle.constants; - &no.constants; - </section> - - <section xml:id="wddx.examples"> - &reftitle.examples; - <para> - All the functions that serialize variables use the first - element of an array to determine whether the array is to be - serialized into an array or structure. If the first element has - string key, then it is serialized into a structure, otherwise, - into an array. - </para> - - <example> - <title>Serializing a single value with WDDX</title> - <programlisting role="php"> -<![CDATA[ -<?php -echo wddx_serialize_value("PHP to WDDX packet example", "PHP packet"); -?> -]]> - </programlisting> - <para> - This example will produce: - </para> - <screen> -<![CDATA[ -<wddxPacket version='1.0'><header comment='PHP packet'/><data> -<string>PHP to WDDX packet example</string></data></wddxPacket> -]]> - </screen> - </example> - - <example> - <title>Using incremental packets with WDDX</title> - <programlisting role="php"> -<![CDATA[ -<?php -$pi = 3.1415926; -$packet_id = wddx_packet_start("PHP"); -wddx_add_vars($packet_id, "pi"); - -/* Suppose $cities came from database */ -$cities = array("Austin", "Novato", "Seattle"); -wddx_add_vars($packet_id, "cities"); - -$packet = wddx_packet_end($packet_id); -echo $packet; -?> -]]> - </programlisting> - <para> - This example will produce: - </para> - <screen> -<![CDATA[ -<wddxPacket version='1.0'><header comment='PHP'/><data><struct> -<var name='pi'><number>3.1415926</number></var><var name='cities'> -<array length='3'><string>Austin</string><string>Novato</string> -<string>Seattle</string></array></var></struct></data></wddxPacket> -]]> - </screen> - </example> - - <note> - <para> - If you want to serialize non-ASCII characters you have to convert - your data to UTF-8 first (see <function>utf8_encode</function> and - <function>iconv</function>). - </para> - </note> - </section> - </partintro> - -&reference.wddx.entities.functions; - - </reference> +</reference> <!-- Keep this comment at the end of the file Local variables: