cvs: phpdoc(REF_STRUCT_DEV) / manual.xml.in /en/reference/curl book.xml constants.xml examples.xml reference.xml setup.xml /en/reference/fam
book.xml constants.xml reference.xml setup.xml /en/reference/ftp book.xml constants.xml examples.xml reference.xml setup.xml /en/reference/http
book.xml install.xml reference.xml request-options.xml setup.xml /en/reference/hw apache.xml book.xml constants.xml reference.xml setup.xml
/en/reference/hwapi book.xml constants.xml reference.xml setup.xml /en/reference/ircg book.xml constants.xml reference.xml setup.xml
/en/reference/java book.xml constants.xml examples.xml reference.xml servlet.xml setup.xml /en/reference/ldap book.xml constants.xml examples.xml
reference.xml setup.xml using.xml /en/reference/memcache book.xml constants.xml examples.xml reference.xml setup.xml /en/reference/mnogosearch
book.xml constants.xml reference.xml setup.xml /en/reference/net_gopher book.xml constants.xml examples.xml reference.xml! setup.xml
/en/reference/network book.xml constants.xml reference.xml setup.xml /en/reference/nis book.xml constants.xml reference.xml setup.xml
/en/reference/notes book.xml constants.xml reference.xml setup.xml /en/reference/sam book.xml constants.xml examples.xml reference.xml setup.xml
/en/reference/snmp book.xml constants.xml reference.xml setup.xml /en/reference/sockets book.xml constants.xml errors.xml examples.xml reference.xml
setup.xml /en/reference/ssh2 book.xml constants.xml reference.xml setup.xml /en/reference/svn book.xml constants.xml reference.xml setup.xml
/en/reference/tcpwrap book.xml constants.xml reference.xml setup.xml /en/reference/yaz book.xml constants.xml examples.xml reference.xml setup.xml
| From: | Hannes Magnusson | Date: | Sat, 08 Dec 2007 16:58:31 +0000 |
| Subject: | cvs: phpdoc(REF_STRUCT_DEV) / manual.xml.in /en/reference/curl book.xml constants.xml examples.xml reference.xml setup.xml /en/reference/fam book.xml constants.xml reference.xml setup.xml /en/reference/ftp book.xml constants.xml examples.xml reference.xml setup.xml /en/reference/http book.xml install.xml reference.xml request-options.xml setup.xml /en/reference/hw apache.xml book.xml constants.xml reference.xml setup.xml /en/reference/hwapi book.xml constants.xml reference.xml setup.xml /en/reference/ircg book.xml constants.xml reference.xml setup.xml /en/reference/java book.xml constants.xml examples.xml reference.xml servlet.xml setup.xml /en/reference/ldap book.xml constants.xml examples.xml reference.xml setup.xml using.xml /en/reference/memcache book.xml constants.xml examples.xml reference.xml setup.xml /en/reference/mnogosearch book.xml constants.xml reference.xml setup.xml /en/reference/net_gopher book.xml constants.xml examples.xml reference.xml! setup.xml /en/reference/network book.xml constants.xml reference.xml setup.xml /en/reference/nis book.xml constants.xml reference.xml setup.xml /en/reference/notes book.xml constants.xml reference.xml setup.xml /en/reference/sam book.xml constants.xml examples.xml reference.xml setup.xml /en/reference/snmp book.xml constants.xml reference.xml setup.xml /en/reference/sockets book.xml constants.xml errors.xml examples.xml reference.xml setup.xml /en/reference/ssh2 book.xml constants.xml reference.xml setup.xml /en/reference/svn book.xml constants.xml reference.xml setup.xml /en/reference/tcpwrap book.xml constants.xml reference.xml setup.xml /en/reference/yaz book.xml constants.xml examples.xml reference.xml setup.xml |
||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-557@lists.php.net to get a copy of this message | ||
bjori Sat Dec 8 16:58:31 2007 UTC
Added files: (Branch: REF_STRUCT_DEV)
/phpdoc/en/reference/curl book.xml examples.xml setup.xml
/phpdoc/en/reference/fam book.xml setup.xml
/phpdoc/en/reference/ftp book.xml examples.xml setup.xml
/phpdoc/en/reference/net_gopher book.xml examples.xml setup.xml
/phpdoc/en/reference/hw apache.xml book.xml setup.xml
/phpdoc/en/reference/hwapi book.xml constants.xml setup.xml
/phpdoc/en/reference/http book.xml setup.xml
/phpdoc/en/reference/ircg book.xml constants.xml setup.xml
/phpdoc/en/reference/java book.xml constants.xml examples.xml
servlet.xml setup.xml
/phpdoc/en/reference/ldap book.xml examples.xml setup.xml using.xml
/phpdoc/en/reference/memcache book.xml examples.xml setup.xml
/phpdoc/en/reference/mnogosearch book.xml setup.xml
/phpdoc/en/reference/network book.xml setup.xml
/phpdoc/en/reference/notes book.xml constants.xml setup.xml
/phpdoc/en/reference/sam book.xml examples.xml setup.xml
/phpdoc/en/reference/sockets book.xml errors.xml examples.xml
setup.xml
/phpdoc/en/reference/ssh2 book.xml setup.xml
/phpdoc/en/reference/svn book.xml setup.xml
/phpdoc/en/reference/tcpwrap book.xml constants.xml setup.xml
/phpdoc/en/reference/yaz book.xml constants.xml examples.xml
setup.xml
/phpdoc/en/reference/nis book.xml setup.xml
/phpdoc/en/reference/snmp book.xml setup.xml
Modified files:
/phpdoc manual.xml.in
/phpdoc/en/reference/curl constants.xml reference.xml
/phpdoc/en/reference/fam constants.xml reference.xml
/phpdoc/en/reference/ftp constants.xml reference.xml
/phpdoc/en/reference/net_gopher constants.xml reference.xml
/phpdoc/en/reference/hw constants.xml reference.xml
/phpdoc/en/reference/hwapi reference.xml
/phpdoc/en/reference/http install.xml reference.xml
request-options.xml
/phpdoc/en/reference/ircg reference.xml
/phpdoc/en/reference/java reference.xml
/phpdoc/en/reference/ldap constants.xml reference.xml
/phpdoc/en/reference/memcache constants.xml reference.xml
/phpdoc/en/reference/mnogosearch constants.xml reference.xml
/phpdoc/en/reference/network constants.xml reference.xml
/phpdoc/en/reference/notes reference.xml
/phpdoc/en/reference/sam constants.xml reference.xml
/phpdoc/en/reference/sockets constants.xml reference.xml
/phpdoc/en/reference/ssh2 constants.xml reference.xml
/phpdoc/en/reference/svn constants.xml reference.xml
/phpdoc/en/reference/tcpwrap reference.xml
/phpdoc/en/reference/yaz reference.xml
/phpdoc/en/reference/nis constants.xml reference.xml
/phpdoc/en/reference/snmp constants.xml reference.xml
Log:
Upgrade refs.remote.other to the new-ref-struct
http://cvs.php.net/viewvc.cgi/phpdoc/manual.xml.in?r1=1.224.2.30&r2=1.224.2.31&diff_format=u Index: phpdoc/manual.xml.in diff -u phpdoc/manual.xml.in:1.224.2.30 phpdoc/manual.xml.in:1.224.2.31 --- phpdoc/manual.xml.in:1.224.2.30 Sat Dec 8 09:57:45 2007 +++ phpdoc/manual.xml.in Sat Dec 8 16:58:28 2007 @@ -2,7 +2,7 @@ <!DOCTYPE set PUBLIC "-//OASIS//DTD DocBook XML V5.0//EN" "@srcdir@/docbook/docbook-xml/docbook.dtd" [ -<!-- $Revision: 1.224.2.30 $ --> <!-- Last updated to comply to manual.xml.in 1.189 --> +<!-- $Revision: 1.224.2.31 $ --> <!-- Last updated to comply to manual.xml.in 1.189 --> <!-- We use xhtml entities all over the place --> <!ENTITY % xhtml-lat1 SYSTEM "@srcdir@/entities/ISO/xhtml1-lat1.ent"> <!ENTITY % xhtml-symbol SYSTEM "@srcdir@/entities/ISO/xhtml1-symbol.ent"> @@ -322,31 +322,31 @@ &reference.kadm5.reference; </book> - <book xml:id="refs.remote.other"> + <set xml:id="refs.remote.other"> <title>Other Services</title> - &reference.curl.reference; - &reference.fam.reference; - &reference.ftp.reference; - &reference.net-gopher.reference; - &reference.hw.reference; - &reference.http.reference; - &reference.hwapi.reference; - &reference.ircg.reference; - &reference.java.reference; - &reference.ldap.reference; - &reference.memcache.reference; - &reference.mnogosearch.reference; - &reference.network.reference; - &reference.notes.reference; - &reference.sam.reference; - &reference.sockets.reference; - &reference.ssh2.reference; - &reference.svn.reference; - &reference.tcpwrap.reference; - &reference.yaz.reference; - &reference.nis.reference; - &reference.snmp.reference; - </book> + &reference.curl.book; + &reference.fam.book; + &reference.ftp.book; + &reference.net-gopher.book; + &reference.hw.book; + &reference.hwapi.book; + &reference.http.book; + &reference.ircg.book; + &reference.java.book; + &reference.ldap.book; + &reference.memcache.book; + &reference.mnogosearch.book; + &reference.network.book; + &reference.notes.book; + &reference.sam.book; + &reference.sockets.book; + &reference.ssh2.book; + &reference.svn.book; + &reference.tcpwrap.book; + &reference.yaz.book; + &reference.nis.book; + &reference.snmp.book; + </set> <set xml:id="refs.compression"> <title>Compression Extensions</title> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/curl/constants.xml?r1=1.16.2.1&r2=1.16.2.2&diff_format=u Index: phpdoc/en/reference/curl/constants.xml diff -u phpdoc/en/reference/curl/constants.xml:1.16.2.1 phpdoc/en/reference/curl/constants.xml:1.16.2.2 --- phpdoc/en/reference/curl/constants.xml:1.16.2.1 Tue Oct 23 17:24:15 2007 +++ phpdoc/en/reference/curl/constants.xml Sat Dec 8 16:58:28 2007 @@ -1,12 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.16.2.1 $ --> -<refentry xml:id="curl.constants" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>Constants</refname> - <refpurpose>Curl Predefined Constants</refpurpose> - </refnamediv> - - <refsect1> +<!-- $Revision: 1.16.2.2 $ --> +<appendix xml:id="curl.constants" xmlns="http://docbook.org/ns/docbook"> &reftitle.constants; &extension.constants; <para> @@ -2995,8 +2989,7 @@ </listitem> </varlistentry> </variablelist> -</refsect1> -</refentry> +</appendix> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/curl/reference.xml?r1=1.18.2.1&r2=1.18.2.2&diff_format=u Index: phpdoc/en/reference/curl/reference.xml diff -u phpdoc/en/reference/curl/reference.xml:1.18.2.1 phpdoc/en/reference/curl/reference.xml:1.18.2.2 --- phpdoc/en/reference/curl/reference.xml:1.18.2.1 Wed Oct 3 11:41:09 2007 +++ phpdoc/en/reference/curl/reference.xml Sat Dec 8 16:58:28 2007 @@ -1,97 +1,8 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.18.2.1 $ --> -<!-- Purpose: remote.other --> -<!-- Membership: bundled, external --> +<!-- $Revision: 1.18.2.2 $ --> <reference xml:id="ref.curl" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <title>CURL, Client URL Library Functions</title> - <titleabbrev>CURL</titleabbrev> - - <partintro> - <section xml:id="curl.intro"> - &reftitle.intro; - <para> - PHP supports libcurl, a library created by Daniel Stenberg, that - allows you to connect and communicate to many different types of - servers with many different types of protocols. libcurl currently - supports the http, https, ftp, gopher, telnet, dict, file, and - ldap protocols. libcurl also supports HTTPS certificates, HTTP - POST, HTTP PUT, FTP uploading (this can also be done with PHP's - ftp extension), HTTP form based upload, proxies, cookies, and - user+password authentication. - </para> - <para> - These functions have been added in PHP 4.0.2. - </para> - </section> - - <section xml:id="curl.requirements"> - &reftitle.required; - <para> - In order to use PHP's cURL functions you need to install the <link - xlink:href="&url.curl;">libcurl</link> package. PHP requires that you use - libcurl 7.0.2-beta or higher. In PHP 4.2.3, you will need - libcurl version 7.9.0 or higher. From PHP 4.3.0, you will need a libcurl - version that's 7.9.8 or higher. PHP 5.0.0 requires - a libcurl version 7.10.5 or greater. - </para> - </section> - - &reference.curl.configure; - - <section xml:id="curl.resources"> - &reftitle.resources; - <para> - This extension defines two resource types: a cURL handle and a cURL multi - handle. - </para> - </section> - - <section> - &reftitle.constants; - <para> - See also the cURL <link linkend="curl.constants">Predefined Constants</link> - </para> - </section> - - <section xml:id="curl.examples"> - &reftitle.examples; - <para> - Once you've compiled PHP with cURL support, you can begin using - the cURL functions. The basic idea behind the cURL functions is - that you initialize a cURL session using the - <function>curl_init</function>, then you can set all your - options for the transfer via the <function>curl_setopt</function>, - then you can execute the session with the - <function>curl_exec</function> and then you finish off - your session using the <function>curl_close</function>. - Here is an example that uses the cURL functions to fetch the - example.com homepage into a file: - <example> - <title>Using PHP's cURL module to fetch the example.com homepage</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$ch = curl_init("http://www.example.com/"); -$fp = fopen("example_homepage.txt", "w"); - -curl_setopt($ch, CURLOPT_FILE, $fp); -curl_setopt($ch, CURLOPT_HEADER, 0); - -curl_exec($ch); -curl_close($ch); -fclose($fp); -?> -]]> - </programlisting> - </example> - </para> - </section> - - </partintro> - - &reference.curl.constants; + <title>CURL, Client URL Library &Functions;</title> &reference.curl.functions.entities; http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/fam/constants.xml?r1=1.3&r2=1.3.2.1&diff_format=u Index: phpdoc/en/reference/fam/constants.xml diff -u phpdoc/en/reference/fam/constants.xml:1.3 phpdoc/en/reference/fam/constants.xml:1.3.2.1 --- phpdoc/en/reference/fam/constants.xml:1.3 Wed Jun 20 22:24:26 2007 +++ phpdoc/en/reference/fam/constants.xml Sat Dec 8 16:58:28 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<section xml:id="fam.constants" xmlns="http://docbook.org/ns/docbook"> +<!-- $Revision: 1.3.2.1 $ --> +<appendix xml:id="fam.constants" xmlns="http://docbook.org/ns/docbook"> &reftitle.constants; &extension.constants; <table> @@ -79,7 +79,7 @@ </tbody> </tgroup> </table> - </section> + </appendix> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/fam/reference.xml?r1=1.10.2.1&r2=1.10.2.2&diff_format=u Index: phpdoc/en/reference/fam/reference.xml diff -u phpdoc/en/reference/fam/reference.xml:1.10.2.1 phpdoc/en/reference/fam/reference.xml:1.10.2.2 --- phpdoc/en/reference/fam/reference.xml:1.10.2.1 Wed Oct 3 11:41:10 2007 +++ phpdoc/en/reference/fam/reference.xml Sat Dec 8 16:58:28 2007 @@ -1,67 +1,10 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.10.2.1 $ --> -<!-- Purpose: fileprocess.file --> -<!-- Membership: pecl, external --> +<!-- $Revision: 1.10.2.2 $ --> <reference xml:id="ref.fam" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <title>File Alteration Monitor Functions</title> + <title>File Alteration Monitor &Functions;</title> <titleabbrev>fam</titleabbrev> - <partintro> - <section xml:id="fam.intro"> - &reftitle.intro; - <para> - FAM monitors files and directories, notifying interested applications of - changes. More information about FAM is available at - <link xlink:href="&url.fam;">&url.fam;</link>. - </para> - <para> - A PHP script may specify a list of files for FAM to monitor - using the functions provided by this extension. - </para> - <para> - The FAM process is started when the first connection - from any application to it is opened. It exits after all - connections to it have been closed. - </para> - <note> - <para> - &pecl.moved-ver;5.1.0. - </para> - </note> - ¬e.no-windows.extension; - </section> - - <section xml:id="fam.requirements"> - &reftitle.required; - <para> - This extension uses the functions of the <link xlink:href="&url.fam.download;"> - FAM</link> library, developed by SGI. Therefore you have to download and - install the FAM library. - </para> - </section> - - &reference.fam.configure; - - <section xml:id="fam.configuration"> - &reftitle.runtime; - &no.config; - </section> - - <section xml:id="fam.resources"> - &reftitle.resources; - <para> - There are two resource types used in the FAM module. The first one is - the connection to the FAM service returned by - <function>fam_open</function>, the second a monitoring resource returned - by the <literal>fam_monitor_XXX</literal> functions. - </para> - </section> - - &reference.fam.constants; - - </partintro> - &reference.fam.functions.entities; </reference> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ftp/constants.xml?r1=1.6&r2=1.6.2.1&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.6.2.1 --- phpdoc/en/reference/ftp/constants.xml:1.6 Wed Jun 20 22:24:28 2007 +++ phpdoc/en/reference/ftp/constants.xml Sat Dec 8 16:58:28 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.6.2.1 $ --> +<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.13.2.1&r2=1.13.2.2&diff_format=u Index: phpdoc/en/reference/ftp/reference.xml diff -u phpdoc/en/reference/ftp/reference.xml:1.13.2.1 phpdoc/en/reference/ftp/reference.xml:1.13.2.2 --- phpdoc/en/reference/ftp/reference.xml:1.13.2.1 Wed Oct 3 11:41:10 2007 +++ phpdoc/en/reference/ftp/reference.xml Sat Dec 8 16:58:28 2007 @@ -1,93 +1,8 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.13.2.1 $ --> -<!-- Purpose: remote.other --> -<!-- Membership: bundled --> +<!-- $Revision: 1.13.2.2 $ --> <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.functions.entities; @@ -113,3 +28,4 @@ vim: et tw=78 syn=xml vi: ts=1 sw=1 --> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/net_gopher/constants.xml?r1=1.2&r2=1.2.2.1&diff_format=u Index: phpdoc/en/reference/net_gopher/constants.xml diff -u phpdoc/en/reference/net_gopher/constants.xml:1.2 phpdoc/en/reference/net_gopher/constants.xml:1.2.2.1 --- phpdoc/en/reference/net_gopher/constants.xml:1.2 Wed Jun 20 22:25:03 2007 +++ phpdoc/en/reference/net_gopher/constants.xml Sat Dec 8 16:58:28 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<section xml:id="net-gopher.constants" xmlns="http://docbook.org/ns/docbook"> +<!-- $Revision: 1.2.2.1 $ --> +<appendix xml:id="net-gopher.constants" xmlns="http://docbook.org/ns/docbook"> &reftitle.constants; &extension.constants; <table> @@ -64,7 +64,7 @@ </tbody> </tgroup> </table> - </section> + </appendix> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/net_gopher/reference.xml?r1=1.4.2.1&r2=1.4.2.2&diff_format=u Index: phpdoc/en/reference/net_gopher/reference.xml diff -u phpdoc/en/reference/net_gopher/reference.xml:1.4.2.1 phpdoc/en/reference/net_gopher/reference.xml:1.4.2.2 --- phpdoc/en/reference/net_gopher/reference.xml:1.4.2.1 Wed Oct 3 11:41:12 2007 +++ phpdoc/en/reference/net_gopher/reference.xml Sat Dec 8 16:58:28 2007 @@ -1,60 +1,10 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4.2.1 $ --> -<!-- Purpose: remote.other --> -<!-- Membership: pecl --> +<!-- $Revision: 1.4.2.2 $ --> <reference xml:id="ref.net-gopher" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>Net_Gopher</title> <titleabbrev>gopher</titleabbrev> - <partintro> - <section xml:id="net-gopher.intro"> - &reftitle.intro; - <simpara> - The gopher protocol, as defined by <link xlink:href="&url.rfc;1436">RFC 1436</link>, - is generally considered the ancestor of the modern HTTP protocol. - However, gopher was also intended to provide references to non-gopher - resources including telnet, wais, nntp, and even http. This extension - adds gopher support to PHP's <link linkend="wrappers">URL Wrappers</link>, - and provides a helper function <function>gopher_parsedir</function> to - make sense of gopher formatted directory listings. - </simpara> - </section> - - <section xml:id="net-gopher.requirements"> - &reftitle.required; - <para> - </para> - </section> - - &reference.net-gopher.configure; - - <section xml:id="net-gopher.configuration"> - &reftitle.runtime; - &no.config; - </section> - - <section xml:id="net-gopher.resources"> - &reftitle.resources; - &no.resource; - </section> - - &reference.net-gopher.constants; - - <section xml:id="net-gopher.examples"> - &reftitle.examples; - <informalexample> - <programlisting role="php"> -<![CDATA[ -<?php -readfile("gopher://gopher.example.com/somedocument"); -?> -]]> - </programlisting> - </informalexample> - </section> - </partintro> - &reference.net-gopher.functions.entities; </reference> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/hw/constants.xml?r1=1.4&r2=1.4.2.1&diff_format=u Index: phpdoc/en/reference/hw/constants.xml diff -u phpdoc/en/reference/hw/constants.xml:1.4 phpdoc/en/reference/hw/constants.xml:1.4.2.1 --- phpdoc/en/reference/hw/constants.xml:1.4 Wed Jun 20 22:24:35 2007 +++ phpdoc/en/reference/hw/constants.xml Sat Dec 8 16:58:29 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<section xml:id="hw.constants" xmlns="http://docbook.org/ns/docbook"> +<!-- $Revision: 1.4.2.1 $ --> +<appendix xml:id="hw.constants" xmlns="http://docbook.org/ns/docbook"> &reftitle.constants; &extension.constants; <variablelist> @@ -38,7 +38,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/hw/reference.xml?r1=1.12.2.1&r2=1.12.2.2&diff_format=u Index: phpdoc/en/reference/hw/reference.xml diff -u phpdoc/en/reference/hw/reference.xml:1.12.2.1 phpdoc/en/reference/hw/reference.xml:1.12.2.2 --- phpdoc/en/reference/hw/reference.xml:1.12.2.1 Wed Oct 3 11:41:10 2007 +++ phpdoc/en/reference/hw/reference.xml Sat Dec 8 16:58:29 2007 @@ -1,391 +1,11 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.12.2.1 $ --> -<!-- Purpose: remote.other --> -<!-- Membership: pecl, external --> +<!-- $Revision: 1.12.2.2 $ --> <reference xml:id="ref.hw" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <title>Hyperwave Functions</title> - <titleabbrev>Hyperwave</titleabbrev> + <title>Hyperwave &Functions;</title> <partintro> - <section xml:id="hw.intro"> - &reftitle.intro; - <para> - <productname>Hyperwave</productname> has been developed at - <link xlink:href="&url.iicm;">IICM</link> in Graz. It started with - the name <acronym>Hyper-G</acronym> and changed to Hyperwave when - it was commercialised (in 1996). - </para> - <para> - Hyperwave is not free software. The current version, 5.5 is - available at <link xlink:href="&url.hyperwave;">&url.hyperwave;</link>. - A time limited version can be ordered for free (30 days). - </para> - <para> - See also the <link linkend="ref.hwapi">Hyperwave API</link> module. - </para> - <para> - Hyperwave is an information system similar to a database - (<acronym>HIS</acronym>, Hyperwave Information Server). Its focus - is the storage and management of documents. A document can be any - possible piece of data that may as well be stored in file. Each - document is accompanied by its object record. The object record - contains meta data for the document. The meta data is a list of - attributes which can be extended by the user. Certain attributes - are always set by the Hyperwave server, other may be modified by - the user. An attribute is a name/value pair of the form name=value. - The complete object record contains as many of those pairs as the - user likes. The name of an attribute does not have to be unique, - e.g. a title may appear several times within an object record. - This makes sense if you want to specify a title in several languages. - In such a case there is a convention, that each title value is - preceded by the two letter language abbreviation followed by a colon, - e.g. <literal>'en:Title in English'</literal> or <literal>'ge:Titel - in deutsch'</literal>. Other attributes like a description or keywords - are potential candidates. You may also replace the language - abbreviation by any other string as long as it separated by colon - from the rest of the attribute value. - </para> - <para> - Each object record has native a string representation with each - name/value pair separated by a newline. The Hyperwave extension - also knows a second representation which is an associated array with - the attribute name being the key. Multilingual attribute values itself - form another associated array with the key being the language - abbreviation. Actually any multiple attribute forms an associated - array with the string left to the colon in the attribute value - being the key. (This is not fully implemented. Only the attributes - Title, Description and Keyword are treated properly yet.) - </para> - <para> - Besides the documents, all hyper links contained in a document - are stored as object records as well. Hyper links which - are in a document will be removed from it and stored as individual - objects, when the document is inserted into the database. - The object record of the link contains information - about where it starts and where it ends. - In order to gain the original document you will have - to retrieve the plain document without the links and the list - of links and reinsert them. The functions - <function>hw_pipedocument</function> and <function>hw_gettext</function> - do this for you. The advantage of separating links - from the document is obvious. Once a document to which a link - is pointing to changes its name, the link can easily be modified - accordingly. The document containing the link is not affected - at all. You may even add a link to a document without modifying - the document itself. - </para> - <para> - Saying that <function>hw_pipedocument</function> and - <function>hw_gettext</function> do the link insertion automatically - is not as simple as it sounds. Inserting links implies a certain - hierarchy of the documents. On a web server this is given by the - file system, but Hyperwave has its own hierarchy and names do not - reflect the position of an object in that hierarchy. Therefore - creation of links first of all requires a mapping from the Hyperwave - hierarchy and namespace into a web hierarchy respective web namespace. - The fundamental difference between Hyperwave and the web is the clear - distinction between names and hierarchy in Hyperwave. The name does - not contain any information about the objects position in the hierarchy. - In the web the name also contains the information on where the object - is located in the hierarchy. This leads to two possibles ways of mapping. - Either the Hyperwave hierarchy and name of the Hyperwave object is - reflected in the URL or the name only. To make things simple the second - approach is used. Hyperwave object with name <literal>my_object</literal> - is mapped to <literal>http://host/my_object</literal> disregarding where - it resides in the Hyperwave hierarchy. An object with name - <literal>parent/my_object</literal> could be the child of - <literal>my_object</literal> in the Hyperwave hierarchy, though in a web - namespace it appears to be just the opposite and the user might get - confused. This can only be prevented by selecting reasonable object names. - </para> - <para> - Having made this decision a second problem arises. How do you - involve PHP? The URL <literal>http://host/my_object</literal> will - not call any PHP script unless you tell your web server to rewrite it to - e.g. <literal>http://host/php_script/my_object</literal> and the script - <literal>php_script</literal> evaluates the <varname>$PATH_INFO</varname> - variable and retrieves the object with name <literal>my_object</literal> - from the Hyperwave server. Their is just one little - drawback which can be fixed easily. Rewriting any URL would not allow - any access to other document on the web server. A PHP script for - searching in the Hyperwave server would be impossible. Therefore - you will need at least a second rewriting rule to exclude certain - URLs like all e.g. starting with <literal>http://host/Hyperwave</literal> - This is basically sharing of a namespace by the web and Hyperwave server. - </para> - <para> - Based on the above mechanism links are insert into documents. - </para> - <para> - It gets more complicated if PHP is not run as a server module or CGI - script but as a standalone application e.g. to dump the content of - the Hyperwave server on a CD-ROM. In such a case it makes sense to - retain the Hyperwave hierarchy and map in onto the file system. This - conflicts with the object names if they reflect its own hierarchy - (e.g. by choosing names including '/'). Therefore '/' has to be - replaced by another character, e.g. '_'. - </para> - <para> - The network protocol to communicate with the Hyperwave server is called - <link xlink:href="&spec.hyperwave;">HG-CSP</link> (Hyper-G Client/Server - Protocol). It is based on messages to initiate certain actions, e.g. get - object record. In early versions of the Hyperwave Server two native - clients (Harmony, Amadeus) were provided for communication with the - server. Those two disappeared when Hyperwave was commercialised. As a - replacement a so called wavemaster was provided. The wavemaster is like a - protocol converter from <abbrev>HTTP</abbrev> to <abbrev>HG-CSP</abbrev>. - The idea is to do all the administration of the database and - visualisation of documents by a web interface. The wavemaster implements - a set of placeholders for certain actions to customise the interface. - This set of placeholders is called the <abbrev>PLACE</abbrev> Language. - <abbrev>PLACE</abbrev> lacks a lot of features of a real programming - language and any extension to it only enlarges the list of placeholders. - This has led to the use of JavaScript which IMO does not make life - easier. - </para> - <para> - Adding Hyperwave support to PHP should fill in the gap of a - missing programming language for interface customisation. It - implements all the messages as defined by the <abbrev>HG-CSP</abbrev> - but also provides more powerful commands to e.g. retrieve complete - documents. - </para> - <para> - Hyperwave has its own terminology to name certain pieces of - information. This has widely been taken over and extended. - Almost all functions operate on one of the following data types. - - <itemizedlist> - <listitem> - <simpara> - object ID: A unique integer value for each object in the - Hyperwave server. It is also one of the attributes of the - object record (ObjectID). Object ids are often used as an - input parameter to specify an object. - </simpara> - </listitem> - <listitem> - <simpara> - object record: A string with attribute-value pairs of the form - attribute=value. The pairs are separated by a carriage return - from each other. An object record can easily be converted into - an object array with <function>hw_object2array</function>. - Several functions return object records. The names of those - functions end with obj. - </simpara> - </listitem> - <listitem> - <simpara> - object array: An associative array with all attributes of an - object. The keys are the attribute names. If an attribute occurs - more than once in an object record it will result in another - indexed or associative array. Attributes which are language - depended (like the title, keyword, description) will form an - associative array with the keys set to the language - abbreviations. All other multiple attributes will form an - indexed array. PHP functions never return object arrays. - </simpara> - </listitem> - <listitem> - <simpara> - hw_document: This is a complete new data type which holds the - actual document, e.g. HTML, PDF etc. It is somewhat optimized - for HTML documents but may be used for any format. - </simpara> - </listitem> - </itemizedlist> - </para> - <para> - Several functions which return an array of object records do also - return an associative array with statistical information about - them. The array is the last element of the object record - array. The statistical array contains the following entries: - <variablelist> - <varlistentry> - <term>Hidden</term> - <listitem> - <simpara> - Number of object records with attribute PresentationHints - set to Hidden. - </simpara> - </listitem> - </varlistentry> - <varlistentry> - <term>CollectionHead</term> - <listitem> - <simpara> - Number of object records with attribute - PresentationHints set to CollectionHead. - </simpara> - </listitem> - </varlistentry> - <varlistentry> - <term>FullCollectionHead</term> - <listitem> - <simpara> - Number of object records with attribute - PresentationHints set to FullCollectionHead. - </simpara> - </listitem> - </varlistentry> - <varlistentry> - <term>CollectionHeadNr</term> - <listitem> - <simpara> - Index in array of object records with - attribute PresentationHints set to CollectionHead. - </simpara> - </listitem> - </varlistentry> - <varlistentry> - <term>FullCollectionHeadNr</term> - <listitem> - <simpara> - Index in array of object records with - attribute PresentationHints set to FullCollectionHead. - </simpara> - </listitem> - </varlistentry> - <varlistentry> - <term>Total</term> - <listitem> - <simpara> - Total: Number of object records. - </simpara> - </listitem> - </varlistentry> - </variablelist> - </para> - </section> - - <section xml:id="hw.requirements"> - &reftitle.required; - <para> - This extension needs a Hyperwave server downloadable - from <link xlink:href="&url.hyperwave;">&url.hyperwave;</link>. - </para> - </section> - - &reference.hw.configure; - - <section xml:id="hw.apache"> - <title>Integration with Apache</title> - <para> - The Hyperwave extension is best used when PHP is compiled as an - Apache module. In such a case the underlying Hyperwave server can - be hidden from users almost completely if Apache uses its rewriting - engine. The following instructions will explain this. - </para> - <para> - Since PHP with Hyperwave support built into Apache is intended - to replace the native Hyperwave solution based on Wavemaster, we - will assume that the Apache server will only serve as a Hyperwave - web interface for these examples. This is not necessary but it simplifies - the configuration. The concept is quite simple. First of all you - need a PHP script which evaluates the <varname>$_ENV['PATH_INFO']</varname> - variable and treats its value as the name of a Hyperwave - object. Let's call this script <literal>'Hyperwave'</literal>. The URL - <literal>http://your.hostname/Hyperwave/name_of_object</literal> - would than return the Hyperwave object with the name - <literal>'name_of_object'</literal>. Depending on the type of the object - the script has to react accordingly. If it is a collection, it will probably - return a list of children. If it is a document it will return the - mime type and the content. A slight improvement can be achieved - if the Apache rewriting engine is used. From the users point of - view it would be more straight forward if the URL - <literal>http://your.hostname/name_of_object</literal> would - return the object. The rewriting rule is quite easy: - - <informalexample> - <programlisting role="apache-conf"> -<![CDATA[ -RewriteRule ^/(.*) /usr/local/apache/htdocs/HyperWave/$1 [L] -]]> - </programlisting> - </informalexample> - - Now every URL relates to an object in the Hyperwave server. This - causes a simple to solve problem. There is no way to execute a - different script, e.g. for searching, than the 'Hyperwave' - script. This can be fixed with another rewriting rule like the - following: - - <informalexample> - <programlisting role="apache-conf"> -<![CDATA[ -RewriteRule ^/hw/(.*) /usr/local/apache/htdocs/hw/$1 [L] -]]> - </programlisting> - </informalexample> - - This will reserve the directory <filename>/usr/local/apache/htdocs/hw</filename> - for additional scripts and other files. Just make sure this rule is - evaluated before the one above. There is just a little drawback: - all Hyperwave objects whose name starts with <literal>'hw/'</literal> - will be shadowed. So, make sure you don't use such names. If you need - more directories, e.g. for images just add more rules or place - them all in one directory. Before you put those instructions, don't - forget to turn on the rewriting engine with - - <informalexample> - <programlisting role="apache-conf"> -<![CDATA[ -RewriteEngine on -]]> - </programlisting> - </informalexample> - - You will need scripts: - - <itemizedlist> - <listitem> - <simpara> - to return the object itself - </simpara> - </listitem> - <listitem> - <simpara> - to allow searching - </simpara> - </listitem> - <listitem> - <simpara> - to identify yourself - </simpara> - </listitem> - <listitem> - <simpara> - to set your profile - </simpara> - </listitem> - <listitem> - <simpara> - one for each additional function like to show - the object attributes, to show information about users, - to show the status of the server, etc. - </simpara> - </listitem> - </itemizedlist> - </para> - <para> - As an alternative to the Rewrite Engine, you can also consider using - the Apache <literal>ErrorDocument</literal> directive, but be aware, - that <literal>ErrorDocument</literal> redirected pages cannot receive - POST data. - </para> - </section> - - &reference.hw.ini; - - <section xml:id="hw.resources"> - &reftitle.resources; - &no.resource; - </section> - - &reference.hw.constants; - <section xml:id="hw.todo"> <title>Todo</title> <para> @@ -425,6 +45,7 @@ &reference.hw.functions.entities; </reference> + <!-- Keep this comment at the end of the file Local variables: mode: sgml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/hwapi/reference.xml?r1=1.17.2.1&r2=1.17.2.2&diff_format=u Index: phpdoc/en/reference/hwapi/reference.xml diff -u phpdoc/en/reference/hwapi/reference.xml:1.17.2.1 phpdoc/en/reference/hwapi/reference.xml:1.17.2.2 --- phpdoc/en/reference/hwapi/reference.xml:1.17.2.1 Wed Oct 3 11:41:10 2007 +++ phpdoc/en/reference/hwapi/reference.xml Sat Dec 8 16:58:29 2007 @@ -1,60 +1,10 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.17.2.1 $ --> -<!-- Purpose: remote.other --> -<!-- Membership: pecl, external --> +<!-- $Revision: 1.17.2.2 $ --> <reference xml:id="ref.hwapi" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <title>Hyperwave API Functions</title> - <titleabbrev>Hyperwave API</titleabbrev> + <title>Hyperwave API &Functions;</title> <partintro> - - <section xml:id="hwapi.intro"> - &reftitle.intro; - <para> - <productname>Hyperwave</productname> has been developed at - <link xlink:href="&url.iicm;">IICM</link> in Graz. It started with - the name <acronym>Hyper-G</acronym> and changed to Hyperwave when - it was commercialised (in 1996). - </para> - <para> - Hyperwave is not free software. The current version, 5.5, is - available at <link xlink:href="&url.hyperwave;">&url.hyperwave;</link>. - A time limited version can be ordered for free (30 days). - </para> - <para> - See also the <link linkend="ref.hw">Hyperwave</link> module. - </para> - <para> - Hyperwave is an information system similar to a database - (<acronym>HIS</acronym>, Hyperwave Information Server). Its focus - is the storage and management of documents. A document can be any - possible piece of data that may as well be stored in file. Each - document is accompanied by its object record. The object record - contains meta data for the document. The meta data is a list of - attributes which can be extended by the user. Certain attributes - are always set by the Hyperwave server, other may be modified by - the user. - </para> - <note> - <para> - &pecl.moved-ver;5.2.0. - </para> - </note> - </section> - - <section xml:id="hwapi.requirements"> - &reftitle.required; - <para> - Since 2001 there is a Hyperwave SDK available. It supports Java, - JavaScript and C++. This PHP Extension is based on the C++ interface. - In order to activate the hwapi support in PHP you will have to install - the Hyperwave SDK first. - </para> - </section> - - &reference.hwapi.configure; - <section xml:id="hwapi.apache"> <title>Integration with Apache</title> <para> @@ -64,18 +14,7 @@ </para> </section> - &reference.hwapi.ini; - - <section xml:id="hwapi.resources"> - &reftitle.resources; - &no.resource; - </section> - - <section xml:id="hwapi.constants"> - &reftitle.constants; - &no.constants; - </section> - + <!-- FIXME: This extension apparently defines a class.. --> <section xml:id="hwapi.classes"> <title>Classes</title> <para> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/http/install.xml?r1=1.6.2.2&r2=1.6.2.3&diff_format=u Index: phpdoc/en/reference/http/install.xml diff -u phpdoc/en/reference/http/install.xml:1.6.2.2 phpdoc/en/reference/http/install.xml:1.6.2.3 --- phpdoc/en/reference/http/install.xml:1.6.2.2 Sat Oct 27 12:26:57 2007 +++ phpdoc/en/reference/http/install.xml Sat Dec 8 16:58:29 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6.2.2 $ --> -<chapter xml:id="http.install" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> +<!-- $Revision: 1.6.2.3 $ --> +<section xml:id="http.install" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>Installation/Configuration</title> <titleabbrev>Installing the HTTP extension</titleabbrev> @@ -20,41 +20,7 @@ &pecl.windows.download; </para> </section> - - <section xml:id="http.requirements.windows"> - <title>Installation requirements on Windows</title> - <para> - In order to be able to load this extension on <emphasis>Windows</emphasis>, - you additionally need to load the following PHP extensions: - <link linkend="ref.hash">hash</link>, <link linkend="ref.iconv">iconv</link> - &listendand; <link linkend="ref.spl">SPL</link>. - </para> - </section> - - <section xml:id="http.requirements"> - <title>Installation requirements on other platforms</title> - <para> - The extension must be built with <link xlink:href="&url.curl.lib;">libcurl</link> support - to enable <emphasis>request</emphasis> functionality (<literal>--with-http-curl-requests</literal>). - A library version equal or greater to <emphasis>v7.12.3</emphasis> is required. - </para> - <para> - To enable support for sending and receiving <emphasis>compressed</emphasis> - responses, the extension must be built with <link xlink:href="&url.zlib;">zlib</link> support - (<literal>--with-http-zlib-compression</literal>). - A library version equal or greater than <emphasis>v1.2.2</emphasis> is required. - </para> - <para> - <emphasis>Content type quessing</emphasis> can be enabled by - building this extension with <link xlink:href="&url.libmagic;">libmagic</link> support - (<literal>--with-http-magic-mime</literal>). - </para> - </section> - - &reference.http.configuration; - &reference.http.resources; - -</chapter> +</section> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/http/reference.xml?r1=1.24.2.3&r2=1.24.2.4&diff_format=u Index: phpdoc/en/reference/http/reference.xml diff -u phpdoc/en/reference/http/reference.xml:1.24.2.3 phpdoc/en/reference/http/reference.xml:1.24.2.4 --- phpdoc/en/reference/http/reference.xml:1.24.2.3 Sat Oct 27 12:26:57 2007 +++ phpdoc/en/reference/http/reference.xml Sat Dec 8 16:58:29 2007 @@ -1,71 +1,21 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.24.2.3 $ --> -<!-- Purpose: basic.php --> -<!-- Membership: pecl --> - -<part xmlns="http://docbook.org/ns/docbook" version="5.0" xml:id="ref.http" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude"> - <title>HTTP</title> - <titleabbrev>http</titleabbrev> +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.24.2.4 $ --> +<reference xml:id="ref.http"> + <title>HTTP functions</title> <partintro> - <!-- {{{ HTTP intro --> - <section xml:id="http.intro"> - &reftitle.intro; - <simpara> - This HTTP extension aims to provide a convenient and powerful - set of functionality for one of PHPs major applications. - </simpara> - <simpara> - It eases handling of HTTP URLs, dates, redirects, headers and - messages, provides means for negotiation of clients preferred - language and charset, as well as a convenient way to send any - arbitrary data with caching and resuming capabilities. - </simpara> - <simpara> - It provides powerful request functionality, if built with CURL - support. Parallel requests are available for PHP 5 and greater. - </simpara> - <simpara> - Additionally to the API reference in this manual you can find - information about how to install and configure as well as - which global constants are predefined in the following sections: - </simpara> - </section> - - <section xml:id="http.classlisting"> - <title>Classes</title> - &extension.classes; - <simpara> - The <classname>HttpResponse</classname> class requires at least PHP v5.1. - Any other class is available as of PHP v5.0. - </simpara> - <note> - <simpara> - Be aware though, that some methods are not available with PHP v5.0. - </simpara> - </note> - </section> - <!-- }}} --> - </partintro> + <simpara> + Built-in HTTP related functions previously listed on this page can be found in the + <link linkend="ref.network">networking</link> category. + </simpara> + <simpara> + The following functions do not need the HTTP module to be present: + <function>header</function>, <function>headers_list</function>, <function>headers_sent</function>, + <function>setcookie</function> &listendand; <function>setrawcookie</function>. + </simpara> - - <!-- - <reference xml:id="classes.http"> - - <section xml:id="functions.http"> - <title>Functions</title> - <section> - <title>Built-in Functions</title> - <simpara> - Built-in HTTP related functions previously listed on this page can be found in the - <link linkend="ref.network">networking</link> category. - </simpara> - <simpara> - The following functions do not need the HTTP module to be present: - <function>header</function>, <function>headers_list</function>, <function>headers_sent</function>, - <function>setcookie</function> &listendand; <function>setrawcookie</function>. - </simpara> - </section> + <section xml:id="http.functions"> + <title>Function groups</title> <section> <title>Caching</title> <simplelist> @@ -168,38 +118,12 @@ </simplelist> </section> </section> - --> - &reference.http.install; - &reference.http.constants; - &reference.http.request-options; - - &reference.http.HttpDeflateStream; - &reference.http.HttpInflateStream; - &reference.http.HttpMessage; - &reference.http.HttpQueryString; - &reference.http.HttpRequest; - &reference.http.HttpRequestPool; - &reference.http.HttpResponse; - - - <reference xml:id="http.procedural"> - <title>HTTP functions</title> - <partintro> - <simpara> - Built-in HTTP related functions previously listed on this page can be found in the - <link linkend="ref.network">networking</link> category. - </simpara> - <simpara> - The following functions do not need the HTTP module to be present: - <function>header</function>, <function>headers_list</function>, <function>headers_sent</function>, - <function>setcookie</function> &listendand; <function>setrawcookie</function>. - </simpara> - </partintro> - &reference.http.functions.entities; - </reference> + </partintro> + + &reference.http.functions.entities; -</part> +</reference> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/http/request-options.xml?r1=1.3.2.1&r2=1.3.2.2&diff_format=u Index: phpdoc/en/reference/http/request-options.xml diff -u phpdoc/en/reference/http/request-options.xml:1.3.2.1 phpdoc/en/reference/http/request-options.xml:1.3.2.2 --- phpdoc/en/reference/http/request-options.xml:1.3.2.1 Sat Oct 27 12:26:57 2007 +++ phpdoc/en/reference/http/request-options.xml Sat Dec 8 16:58:29 2007 @@ -1,8 +1,8 @@ -<?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.3.2.1 $ --> +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.3.2.2 $ --> <appendix xml:id="http.request.options" xmlns="http://docbook.org/ns/docbook"> - <title>Request Options</title> - <titleabbrev>Options usable with the HttpRequest class and request functions</titleabbrev> + <title>Options usable with the HttpRequest class and request functions</title> + <titleabbrev>Request Options</titleabbrev> <variablelist xml:id="http.request.options.timeouts"> <title>Options related to time outs</title> <varlistentry xml:id="http.request.option.timeout"> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ircg/reference.xml?r1=1.9.2.1&r2=1.9.2.2&diff_format=u Index: phpdoc/en/reference/ircg/reference.xml diff -u phpdoc/en/reference/ircg/reference.xml:1.9.2.1 phpdoc/en/reference/ircg/reference.xml:1.9.2.2 --- phpdoc/en/reference/ircg/reference.xml:1.9.2.1 Wed Oct 3 11:41:11 2007 +++ phpdoc/en/reference/ircg/reference.xml Sat Dec 8 16:58:29 2007 @@ -1,65 +1,8 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.9.2.1 $ --> -<!-- Purpose: remote.other --> -<!-- Membership: pecl, external --> +<!-- $Revision: 1.9.2.2 $ --> <reference xml:id="ref.ircg" xmlns="http://docbook.org/ns/docbook"> - <title>IRC Gateway Functions</title> - <titleabbrev>IRC Gateway</titleabbrev> - <partintro> - - <section xml:id="ircg.intro"> - &reftitle.intro; - <para> - With IRCG you can rapidly stream XML data to thousands of concurrently - connected users. This can be used to build powerful, extensible - interactive platforms such as online games and webchats. - IRCG also features support for a non-streaming mode where a helper - application reformats incoming data and supplies static file snippets in - special formats such as cHTML (i-mode) or WML (WAP). These static files - are then delivered by the high-performance web server. - </para> - <para> - Up to v4, IRCG runs under these platforms: - <itemizedlist> - <listitem><para>AIX</para></listitem> - <listitem><para>FreeBSD</para></listitem> - <listitem><para>HP-UX</para></listitem> - <listitem><para>Irix</para></listitem> - <listitem><para>Linux</para></listitem> - <listitem><para>Solaris</para></listitem> - <listitem><para>Tru64</para></listitem> - <listitem><para>Windows</para></listitem> - </itemizedlist> - </para> - <note> - <para> - &pecl.moved-ver;5.1.0. - </para> - </note> - </section> - - &reference.ircg.configure; - - <section xml:id="ircg.configuration"> - &reftitle.runtime; - &no.config; - </section> - - <section xml:id="ircg.resources"> - &reftitle.resources; - <para> - - - </para> - </section> - - <section xml:id="ircg.constants"> - &reftitle.constants; - &no.constants; - </section> - - </partintro> + <title>IRC Gateway &Functions;</title> &reference.ircg.functions.entities; http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/java/reference.xml?r1=1.14.2.1&r2=1.14.2.2&diff_format=u Index: phpdoc/en/reference/java/reference.xml diff -u phpdoc/en/reference/java/reference.xml:1.14.2.1 phpdoc/en/reference/java/reference.xml:1.14.2.2 --- phpdoc/en/reference/java/reference.xml:1.14.2.1 Wed Oct 3 11:41:11 2007 +++ phpdoc/en/reference/java/reference.xml Sat Dec 8 16:58:29 2007 @@ -1,214 +1,12 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.14.2.1 $ --> -<!-- Purpose: remote.other --> -<!-- Membership: pecl, external --> -<!-- State: experimental --> +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.14.2.2 $ --> - <reference xml:id="ref.java" xmlns="http://docbook.org/ns/docbook"> - <title>PHP / Java Integration</title> - <titleabbrev>Java</titleabbrev> - <partintro> - - <section xml:id="java.intro"> - &reftitle.intro; - <para> - There are two possible ways to bridge PHP and Java: you can either - <link linkend="java.servlet">integrate PHP into a Java Servlet - environment</link>, which is the more stable and efficient solution, - or integrate Java support into PHP. The former is provided by a SAPI - module that interfaces with the Servlet server, the latter by this - Java extension. - </para> - <para> - The Java extension provides a simple and effective means for creating and - invoking methods on Java objects from PHP. The JVM is created using JNI, - and everything runs in-process. - </para> - &warn.experimental; - </section> - - <section xml:id="java.requirements"> - &reftitle.required; - <para> - You need a Java VM installed on your machine to use this extension. - </para> - </section> - - &reference.java.configure; +<reference xml:id="ref.java" xmlns="http://docbook.org/ns/docbook"> + <title>PHP / Java Integration</title> - &reference.java.ini; + &reference.java.functions.entities; - <section xml:id="java.resources"> - &reftitle.resources; - &no.resource; - </section> - - <section xml:id="java.constants"> - &reftitle.constants; - &no.constants; - </section> - - <section xml:id="java.examples"> - &reftitle.examples; - <para> - <example> - <title>Java Example</title> - <programlisting role="php"> -<![CDATA[ -<?php -// get instance of Java class java.lang.System in PHP -$system = new Java('java.lang.System'); - -// demonstrate property access -echo 'Java version=' . $system->getProperty('java.version') . '<br />'; -echo 'Java vendor=' . $system->getProperty('java.vendor') . '<br />'; -echo 'OS=' . $system->getProperty('os.name') . ' ' . - $system->getProperty('os.version') . ' on ' . - $system->getProperty('os.arch') . ' <br />'; - -// java.util.Date example -$formatter = new Java('java.text.SimpleDateFormat', - "EEEE, MMMM dd, yyyy 'at' h:mm:ss a zzzz"); - -echo $formatter->format(new Java('java.util.Date')); -?> -]]> - </programlisting> - </example> - <example> - <title>AWT Example</title> - <programlisting role="php"> -<![CDATA[ -<?php -// This example is only intended to be run as a CGI. - -$frame = new Java('java.awt.Frame', 'PHP'); -$button = new Java('java.awt.Button', 'Hello Java World!'); - -$frame->add('North', $button); -$frame->validate(); -$frame->pack(); -$frame->visible = True; - -$thread = new Java('java.lang.Thread'); -$thread->sleep(10000); - -$frame->dispose(); -?> -]]> - </programlisting> - </example> - - Notes: - - <itemizedlist> - <listitem> - <simpara> - <literal>new Java()</literal> will create an instance of a class if - a suitable constructor is available. If no parameters are passed and - the default constructor is useful as it provides access to classes - like <literal>java.lang.System</literal> which expose most of their - functionallity through static methods. - </simpara> - </listitem> - <listitem> - <simpara> - Accessing a member of an instance will first look for bean properties - then public fields. In other words, <literal>print $date.time</literal> - will first attempt to be resolved as <literal>$date.getTime()</literal>, - then as <literal>$date.time</literal>. - </simpara> - </listitem> - <listitem> - <simpara> - Both static and instance members can be accessed on an object with - the same syntax. Furthermore, if the java object is of type - <literal>java.lang.Class</literal>, then static members of the class - (fields and methods) can be accessed. - </simpara> - </listitem> - <listitem> - <para> - Exceptions raised result in PHP warnings, and &null; results. The - warnings may be eliminated by prefixing the method call with an - "@" sign. The following APIs may be used to retrieve and reset - the last error: - <itemizedlist> - <listitem><simpara><function>java_last_exception_get</function></simpara></listitem> - <listitem><simpara><function>java_last_exception_clear</function></simpara></listitem> - </itemizedlist> - </para> - </listitem> - <listitem> - <simpara> - Overload resolution is in general a hard problem given the - differences in types between the two languages. The PHP Java - extension employs a simple, but fairly effective, metric for - determining which overload is the best match. - </simpara> - <simpara> - Additionally, method names in PHP are not case sensitive, potentially - increasing the number of overloads to select from. - </simpara> - <simpara> - Once a method is selected, the parameters are coerced if necessary, - possibly with a loss of data (example: double precision floating point - numbers will be converted to boolean). - <!-- FIXME Why aren't java-doubles converted to PHP-floats? Is this - correct? --> - </simpara> - </listitem> - <listitem> - <simpara> - In the tradition of PHP, arrays and hashtables may pretty much - be used interchangably. Note that hashtables in PHP may only be - indexed by integers or strings; and that arrays of primitive types - in Java can not be sparse. Also note that these constructs are - passed by value, so may be expensive in terms of memory and time. - </simpara> - </listitem> - </itemizedlist> - </para> - </section> - - <section xml:id="java.servlet"> - <title>Java Servlet SAPI</title> - <para> - The Java Servlet SAPI builds upon the mechanism defined by the Java - extension to enable the entire PHP processor to be run as a servlet. - The primary advantage of this from a PHP perspective is that web servers - which support servlets typically take great care in pooling and reusing - JVMs. Build instructions for the Servlet SAPI module can be found in - <filename>php4/sapi/README</filename>. - - Notes: - - <itemizedlist> - <listitem> - <simpara> - While this code is intended to be able to run on any servlet engine, - it has only been tested on Apache's Jakarta/tomcat to date. Bug - reports, success stories and/or patches required to get this code - to run on other engines would be appreciated. - </simpara> - </listitem> - <listitem> - <simpara> - PHP has a habit of changing the working directory. sapi/servlet will - eventually change it back, but while PHP is running the servlet engine - may not be able to load any classes from the CLASSPATH which are - specified using a relative directory syntax, or find the work directory - used for administration and JSP compilation tasks. - </simpara> - </listitem> - </itemizedlist> - </para> - </section> - </partintro> - -&reference.java.functions.entities; - - </reference> +</reference> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ldap/constants.xml?r1=1.3.2.1&r2=1.3.2.2&diff_format=u Index: phpdoc/en/reference/ldap/constants.xml diff -u phpdoc/en/reference/ldap/constants.xml:1.3.2.1 phpdoc/en/reference/ldap/constants.xml:1.3.2.2 --- phpdoc/en/reference/ldap/constants.xml:1.3.2.1 Sat Oct 13 19:48:11 2007 +++ phpdoc/en/reference/ldap/constants.xml Sat Dec 8 16:58:29 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3.2.1 $ --> -<section xml:id="ldap.constants" xmlns="http://docbook.org/ns/docbook"> +<!-- $Revision: 1.3.2.2 $ --> +<appendix xml:id="ldap.constants" xmlns="http://docbook.org/ns/docbook"> &reftitle.constants; &extension.constants; <variablelist> @@ -239,7 +239,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/ldap/reference.xml?r1=1.16.2.1&r2=1.16.2.2&diff_format=u Index: phpdoc/en/reference/ldap/reference.xml diff -u phpdoc/en/reference/ldap/reference.xml:1.16.2.1 phpdoc/en/reference/ldap/reference.xml:1.16.2.2 --- phpdoc/en/reference/ldap/reference.xml:1.16.2.1 Wed Oct 3 11:41:11 2007 +++ phpdoc/en/reference/ldap/reference.xml Sat Dec 8 16:58:29 2007 @@ -1,230 +1,12 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.16.2.1 $ --> -<!-- Purpose: remote.other --> -<!-- Membership: bundled, external --> +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.16.2.2 $ --> - <reference xml:id="ref.ldap" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <title>LDAP Functions</title> - <titleabbrev>LDAP</titleabbrev> +<reference xml:id="ref.ldap" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <title>LDAP &Functions;</title> + &reference.ldap.functions.entities; - <partintro> - <section xml:id="ldap.intro"> - &reftitle.intro; - <para> - LDAP is the Lightweight Directory Access Protocol, and is a - protocol used to access "Directory Servers". The Directory is a - special kind of database that holds information in a tree - structure. - </para> - <para> - The concept is similar to your hard disk directory structure, - except that in this context, the root directory is "The world" - and the first level subdirectories are "countries". Lower levels - of the directory structure contain entries for companies, - organisations or places, while yet lower still we find directory - entries for people, and perhaps equipment or documents. - </para> - <para> - To refer to a file in a subdirectory on your hard disk, you might - use something like: - </para> - <literallayout> - /usr/local/myapp/docs - </literallayout> - <para> - The forwards slash marks each division in the reference, and the - sequence is read from left to right. - </para> - <para> - The equivalent to the fully qualified file reference in LDAP is - the "distinguished name", referred to simply as "dn". An example - dn might be: - </para> - <literallayout> - cn=John Smith,ou=Accounts,o=My Company,c=US - </literallayout> - <para> - The comma marks each division in the reference, and the sequence - is read from right to left. You would read this dn as: - </para> - <literallayout> - country = US - organization = My Company - organizationalUnit = Accounts - commonName = John Smith - </literallayout> - <para> - In the same way as there are no hard rules about how you organise - the directory structure of a hard disk, a directory server - manager can set up any structure that is meaningful for the - purpose. However, there are some conventions that are used. The - message is that you can not write code to access a directory - server unless you know something about its structure, any more - than you can use a database without some knowledge of what is - available. - </para> - <para> - Lots of information about LDAP can be found at - </para> +</reference> - <itemizedlist> - <listitem> - <para> - <link xlink:href="&url.ldap.netscape;">Mozilla</link> - </para> - </listitem> - <listitem> - <para> - <link xlink:href="&url.ldap.openldap;">OpenLDAP Project</link> - </para> - </listitem> - </itemizedlist> - - <para> - The Netscape SDK contains a helpful - <link xlink:href="&url.ldap.netscape.sdk.docs;">Programmer's Guide</link> in - HTML format. - </para> - </section> - - <section xml:id="ldap.requirements"> - &reftitle.required; - <para> - You will need to get and compile LDAP client libraries from either - <link xlink:href="&url.ldap.openldap.source;">OpenLDAP</link> or <link - xlink:href="&url.ldap.bind9;">Bind9.net</link> in order to compile PHP with - LDAP support. -<!-- - The other links are dead.. (7/7/2005) - So were those Netscape links - updated netscape.sdk link to mozilla.org - now. Also added new entity, url.ldap.bind9, which offers a win32 binary - amongst other things (31/7/2005) - - either the University of Michigan <link xlink:href="&url.ldap.mt;"> - ldap-3.3 package</link>, <link xlink:href="&url.ldap.netscape.sdk;"> Netscape - Directory SDK 3.0</link> or <link xlink:href="&url.ldap.openldap.source;"> - OpenLDAP</link> to compile PHP with LDAP support. ---> - </para> - </section> - - &reference.ldap.configure; - - &reference.ldap.ini; - - <section xml:id="ldap.resources"> - &reftitle.resources; - <para> - Most LDAP functions operate on or return resources (e.g. - <function>ldap_connect</function> returns a positive LDAP link identifier - required by most LDAP functions). - </para> - </section> - - &reference.ldap.constants; - - <section xml:id="ldap.examples"> - &reftitle.examples; - <para> - Retrieve information for all entries where the surname starts - with "S" from a directory server, displaying an extract with - name and email address. - </para> - - <example> - <title>LDAP search example</title> - <programlisting role="php"> -<![CDATA[ -<?php -// basic sequence with LDAP is connect, bind, search, interpret search -// result, close connection - -echo "<h3>LDAP query test</h3>"; -echo "Connecting ..."; -$ds=ldap_connect("localhost"); // must be a valid LDAP server! -echo "connect result is " . $ds . "<br />"; - -if ($ds) { - echo "Binding ..."; - $r=ldap_bind($ds); // this is an "anonymous" bind, typically - // read-only access - echo "Bind result is " . $r . "<br />"; - - echo "Searching for (sn=S*) ..."; - // Search surname entry - $sr=ldap_search($ds, "o=My Company, c=US", "sn=S*"); - echo "Search result is " . $sr . "<br />"; - - echo "Number of entires returned is " . ldap_count_entries($ds, $sr) . "<br />"; - - echo "Getting entries ...<p>"; - $info = ldap_get_entries($ds, $sr); - echo "Data for " . $info["count"] . " items returned:<p>"; - - for ($i=0; $i<$info["count"]; $i++) { - echo "dn is: " . $info[$i]["dn"] . "<br />"; - echo "first cn entry is: " . $info[$i]["cn"][0] . "<br />"; - echo "first email entry is: " . $info[$i]["mail"][0] . "<br /><hr />"; - } - - echo "Closing connection"; - ldap_close($ds); - -} else { - echo "<h4>Unable to connect to LDAP server</h4>"; -} -?> -]]> - </programlisting> - </example> - </section> - - <section xml:id="ldap.using"> - <title>Using the PHP LDAP calls</title> - <para> - Before you can use the LDAP calls you will need to know .. - - <itemizedlist> - <listitem> - <para> - The name or address of the directory server you will use - </para> - </listitem> - <listitem> - <para> - The "base dn" of the server (the part of the world directory - that is held on this server, which could be "o=My - Company,c=US") - </para> - </listitem> - <listitem> - <para> - Whether you need a password to access the server (many servers - will provide read access for an "anonymous bind" but require a - password for anything else) - </para> - </listitem> - </itemizedlist></para> - - <para> - The typical sequence of LDAP calls you will make in an - application will follow this pattern: -<literallayout> - ldap_connect() // establish connection to server - | - ldap_bind() // anonymous or authenticated "login" - | - do something like search or update the directory - and display the results - | - ldap_close() // "logout" -</literallayout></para> - </section> - </partintro> - -&reference.ldap.functions.entities; - - </reference> <!-- Keep this comment at the end of the file Local variables: mode: sgml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/memcache/constants.xml?r1=1.3&r2=1.3.2.1&diff_format=u Index: phpdoc/en/reference/memcache/constants.xml diff -u phpdoc/en/reference/memcache/constants.xml:1.3 phpdoc/en/reference/memcache/constants.xml:1.3.2.1 --- phpdoc/en/reference/memcache/constants.xml:1.3 Sun Jun 24 03:23:30 2007 +++ phpdoc/en/reference/memcache/constants.xml Sat Dec 8 16:58:29 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<section xml:id='memcache.constants' xmlns="http://docbook.org/ns/docbook"> +<!-- $Revision: 1.3.2.1 $ --> +<appendix xml:id='memcache.constants' xmlns="http://docbook.org/ns/docbook"> &reftitle.constants; <table> <title>Memcache Constants</title> @@ -36,7 +36,7 @@ </tbody> </tgroup> </table> -</section> +</appendix> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/memcache/reference.xml?r1=1.10.2.1&r2=1.10.2.2&diff_format=u Index: phpdoc/en/reference/memcache/reference.xml diff -u phpdoc/en/reference/memcache/reference.xml:1.10.2.1 phpdoc/en/reference/memcache/reference.xml:1.10.2.2 --- phpdoc/en/reference/memcache/reference.xml:1.10.2.1 Wed Oct 3 11:41:12 2007 +++ phpdoc/en/reference/memcache/reference.xml Sat Dec 8 16:58:29 2007 @@ -1,116 +1,12 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.10.2.1 $ --> -<!-- Purpose: remote.other --> -<!-- Membership: pecl, external --> +<!-- $Revision: 1.10.2.2 $ --> - <reference xml:id="ref.memcache" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <title>Memcache Functions</title> - <titleabbrev>Memcache</titleabbrev> +<reference xml:id="ref.memcache" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <title>Memcache &Functions;</title> + &reference.memcache.functions.entities; - <partintro> - <section xml:id="memcache.intro"> - &reftitle.intro; - <para> - Memcache module provides handy procedural and object oriented interface - to memcached, highly effective caching daemon, which was especially - designed to decrease database load in dynamic web applications. - </para> - <para> - The Memcache module also provides a <link - linkend="ref.session">session</link> handler (<literal>memcache</literal>). - </para> - <para> - More information about memcached can be found at <link - xlink:href="&url.memcache;">&url.memcache;</link>. - </para> - </section> +</reference> - <section xml:id="memcache.requirements"> - &reftitle.required; - <para> - This module uses functions of <link xlink:href="&url.zlib;">zlib</link> - to support on-the-fly data compression. Zlib is required to install - this module. - </para> - <para> - PHP 4.3.3 or newer is required to use the memcache extension. - </para> - </section> - - &reference.memcache.configure; - &reference.memcache.ini; - - <section xml:id="memcache.resources"> - &reftitle.resources; - <para> - There is only one resource type used in memcache module - it's - the link identifier for a cache server connection. - </para> - </section> - - &reference.memcache.constants; - - <section xml:id="memcache.examples"> - &reftitle.examples; - <para> - <example> - <title>memcache extension overview example</title> - <para> - In this example, an object is being saved in the cache and then - retrieved back. Object and other non-scalar types are serialized - before saving, so it's impossible to store resources (i.e. connection - identifiers and others) in the cache. - </para> - <programlisting role="php"> -<![CDATA[ -<?php - -$memcache = new Memcache; -$memcache->connect('localhost', 11211) or die ("Could not connect"); - -$version = $memcache->getVersion(); -echo "Server's version: ".$version."<br/>\n"; - -$tmp_object = new stdClass; -$tmp_object->str_attr = 'test'; -$tmp_object->int_attr = 123; - -$memcache->set('key', $tmp_object, false, 10) or die ("Failed to save data at the server"); -echo "Store data in the cache (data will expire in 10 seconds)<br/>\n"; - -$get_result = $memcache->get('key'); -echo "Data from the cache:<br/>\n"; - -var_dump($get_result); - -?> -]]> - </programlisting> - </example> - </para> - <para> - <example> - <title>Using memcache session handler</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$session_save_path = "tcp://$host:$port?persistent=1&weight=2&timeout=2&retry_interval=10, ,tcp://$host:$port "; -ini_set('session.save_handler', 'memcache'); -ini_set('session.save_path', $session_save_path); - -?> -]]> - </programlisting> - </example> - </para> - </section> - - </partintro> - - &reference.memcache.functions.entities; - - </reference> <!-- Keep this comment at the end of the file Local variables: mode: sgml @@ -131,3 +27,4 @@ vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/mnogosearch/constants.xml?r1=1.3&r2=1.3.2.1&diff_format=u Index: phpdoc/en/reference/mnogosearch/constants.xml diff -u phpdoc/en/reference/mnogosearch/constants.xml:1.3 phpdoc/en/reference/mnogosearch/constants.xml:1.3.2.1 --- phpdoc/en/reference/mnogosearch/constants.xml:1.3 Wed Jun 20 22:24:57 2007 +++ phpdoc/en/reference/mnogosearch/constants.xml Sat Dec 8 16:58:29 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> - <section xml:id="mnogosearch.constants" xmlns="http://docbook.org/ns/docbook"> +<!-- $Revision: 1.3.2.1 $ --> + <appendix xml:id="mnogosearch.constants" xmlns="http://docbook.org/ns/docbook"> &reftitle.constants; &extension.constants; <variablelist> @@ -1028,7 +1028,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/mnogosearch/reference.xml?r1=1.10.2.1&r2=1.10.2.2&diff_format=u Index: phpdoc/en/reference/mnogosearch/reference.xml diff -u phpdoc/en/reference/mnogosearch/reference.xml:1.10.2.1 phpdoc/en/reference/mnogosearch/reference.xml:1.10.2.2 --- phpdoc/en/reference/mnogosearch/reference.xml:1.10.2.1 Wed Oct 3 11:41:12 2007 +++ phpdoc/en/reference/mnogosearch/reference.xml Sat Dec 8 16:58:29 2007 @@ -1,73 +1,10 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.10.2.1 $ --> -<!-- Purpose: remote.other --> -<!-- Membership: pecl, external --> +<!-- $Revision: 1.10.2.2 $ --> <reference xml:id="ref.mnogosearch" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <title>mnoGoSearch Functions</title> - <titleabbrev>mnoGoSearch</titleabbrev> - <partintro> + <title>mnoGoSearch &Functions;</title> - <section xml:id="mnogosearch.intro"> - &reftitle.intro; - <para> - These functions allow you to access the mnoGoSearch (former - UdmSearch) free search engine. mnoGoSearch is a full-featured search - engine software for intranet and internet servers, distributed under the - GNU license. mnoGoSearch has a number of unique features, which makes it - appropriate for a wide range of applications from search within your - site to a specialized search system such as cooking recipes or newspaper - search, FTP archive search, news articles search, etc. It offers - full-text indexing and searching for HTML, PDF, and text documents. - mnoGoSearch consists of two parts. The first is an indexing mechanism - (indexer). The purpose of the indexer is to walk through HTTP, FTP, NEWS - servers or local files, recursively grabbing all the documents and - storing meta-data about that documents in a SQL database in a smart and - effective manner. After every document is referenced by its - corresponding URL, meta-data is collected by the indexer for later use - in a search process. The search is performed via Web interface. C, CGI, - PHP and Perl search front ends are included. - </para> - <para> - More information about mnoGoSearch can be found at - <link xlink:href="&url.mnogo;">&url.mnogo;</link>. - </para> - <note> - <para> - &pecl.moved-ver;5.1.0. - </para> - </note> - ¬e.no-windows.extension; - </section> - - <section xml:id="mnogosearch.requirements"> - &reftitle.required; - <para> - Download mnoGosearch from - <link xlink:href="&url.mnogo;">&url.mnogo;</link> and install it on your - system. You need at least version 3.1.10 of mnoGoSearch installed to use - these functions. - </para> - </section> - - &reference.mnogosearch.configure; - - <section xml:id="mnogosearch.configuration"> - &reftitle.runtime; - &no.config; - </section> - - <section xml:id="mnogo.resources"> - &reftitle.resources; - <para> - </para> - </section> - - &reference.mnogosearch.constants; - - </partintro> - -&reference.mnogosearch.functions.entities; + &reference.mnogosearch.functions.entities; </reference> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/network/constants.xml?r1=1.8&r2=1.8.2.1&diff_format=u Index: phpdoc/en/reference/network/constants.xml diff -u phpdoc/en/reference/network/constants.xml:1.8 phpdoc/en/reference/network/constants.xml:1.8.2.1 --- phpdoc/en/reference/network/constants.xml:1.8 Wed Jun 20 22:25:03 2007 +++ phpdoc/en/reference/network/constants.xml Sat Dec 8 16:58:29 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> -<section xml:id="network.constants" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> +<!-- $Revision: 1.8.2.1 $ --> +<appendix xml:id="network.constants" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> &reftitle.constants; &extension.constants.core; <table> @@ -223,7 +223,7 @@ </tbody> </tgroup> </table> -</section> +</appendix> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/network/reference.xml?r1=1.8.2.1&r2=1.8.2.2&diff_format=u Index: phpdoc/en/reference/network/reference.xml diff -u phpdoc/en/reference/network/reference.xml:1.8.2.1 phpdoc/en/reference/network/reference.xml:1.8.2.2 --- phpdoc/en/reference/network/reference.xml:1.8.2.1 Wed Oct 3 11:41:13 2007 +++ phpdoc/en/reference/network/reference.xml Sat Dec 8 16:58:29 2007 @@ -1,47 +1,12 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8.2.1 $ --> -<!-- Purpose: remote.other --> -<!-- Membership: core --> +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.8.2.2 $ --> - <reference xml:id="ref.network" xmlns="http://docbook.org/ns/docbook"> - <title>Network Functions</title> - <titleabbrev>Network</titleabbrev> - <partintro> +<reference xml:id="ref.network" xmlns="http://docbook.org/ns/docbook"> + <title>Network &Functions;</title> - <section xml:id="network.intro"> - &reftitle.intro; - <para> - - </para> - </section> - - <section xml:id="network.requirements"> - &reftitle.required; - &no.requirement; - </section> - - <section xml:id="network.installation"> - &reftitle.install; - &no.install; - </section> + &reference.network.functions.entities; - &reference.network.ini; - - <section xml:id="network.resources"> - &reftitle.resources; - <para> - This extension defines a file pointer resource returned by - <function>fsockopen</function> and <function>pfsockopen</function>. - </para> - </section> - - &reference.network.constants; - - </partintro> - -&reference.network.functions.entities; - - </reference> +</reference> <!-- Keep this comment at the end of the file Local variables: mode: sgml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/notes/reference.xml?r1=1.11.2.1&r2=1.11.2.2&diff_format=u Index: phpdoc/en/reference/notes/reference.xml diff -u phpdoc/en/reference/notes/reference.xml:1.11.2.1 phpdoc/en/reference/notes/reference.xml:1.11.2.2 --- phpdoc/en/reference/notes/reference.xml:1.11.2.1 Wed Oct 3 11:41:13 2007 +++ phpdoc/en/reference/notes/reference.xml Sat Dec 8 16:58:29 2007 @@ -1,32 +1,8 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.11.2.1 $ --> -<!-- Purpose: remote.other --> -<!-- Membership: pecl --> -<!-- State: experimental --> +<!-- $Revision: 1.11.2.2 $ --> <reference xml:id="ref.notes" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <title>Lotus Notes Functions</title> - <titleabbrev>Lotus Notes</titleabbrev> - - <partintro> - <section xml:id="notes.intro"> - &reftitle.intro; - &warn.experimental; - <note> - <para> - &pecl.moved-ver;5.0.0. - &pecl.info; - <link xlink:href="&url.pecl.package;notes">&url.pecl.package;notes</link>. - </para> - </note> - <warning> - <para> - This extension is currently not supported, thus looking for a - maintainer. - </para> - </warning> - </section> - </partintro> + <title>Lotus Notes &Functions;</title> &reference.notes.functions.entities; http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/sam/constants.xml?r1=1.8&r2=1.8.2.1&diff_format=u Index: phpdoc/en/reference/sam/constants.xml diff -u phpdoc/en/reference/sam/constants.xml:1.8 phpdoc/en/reference/sam/constants.xml:1.8.2.1 --- phpdoc/en/reference/sam/constants.xml:1.8 Wed Jun 20 22:25:18 2007 +++ phpdoc/en/reference/sam/constants.xml Sat Dec 8 16:58:30 2007 @@ -1,6 +1,6 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.8 $ --> -<section xml:id="mq.constants" xmlns="http://docbook.org/ns/docbook"> +<!-- $Revision: 1.8.2.1 $ --> +<appendix xml:id="sam.constants" xmlns="http://docbook.org/ns/docbook"> &reftitle.constants; &extension.constants; <variablelist> @@ -427,7 +427,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/sam/reference.xml?r1=1.9.2.1&r2=1.9.2.2&diff_format=u Index: phpdoc/en/reference/sam/reference.xml diff -u phpdoc/en/reference/sam/reference.xml:1.9.2.1 phpdoc/en/reference/sam/reference.xml:1.9.2.2 --- phpdoc/en/reference/sam/reference.xml:1.9.2.1 Wed Oct 3 11:41:14 2007 +++ phpdoc/en/reference/sam/reference.xml Sat Dec 8 16:58:30 2007 @@ -1,660 +1,12 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.9.2.1 $ --> -<!-- Purpose: remote.other --> -<!-- Membership: pecl --> +<!-- $Revision: 1.9.2.2 $ --> + <reference xml:id="ref.sam" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <title>SAM - Simple Asynchronous Messaging</title> - <titleabbrev>SAM</titleabbrev> + <title>SAM &Functions;</title> <partintro> - <section xml:id="sam.intro"> - &reftitle.intro; - <para> - This extension provides access to the functionality of messaging and - queueing systems, such as the IBM WebSphere MQSeries family of products, - from PHP scripts. The interface is designed to make it extremely simple - to do the more commonly required tasks such as deliver simple text - messages to queues while still allowing skilled users to do more complex - messaging operations. For many users the complexities of setting up - numerous options can be simply ignored. - </para> - <para> - The SAM extension is a framework that provides a very simple API that can be used to - access a number of messaging middleware systems. Currently the package - includes built-in support for the MQTT (MQ Telemetry Transport) messaging protocol and support for the IBM - Messaging and Queuing middleware products. SAM is designed to be readily extended to - support other messaging systems and extension modules may be written in C or PHP. - </para> - </section> <!-- xml:id=sam.intro --> - - <section xml:id='sam.installation'> - &reftitle.install; - <para> - The SAM framework and MQTT support can be built and used without any other prerequisites. - Support for protocols other than MQTT is provided via a set of libraries and some client - side code referred to as XMS. - </para> - <para> - If you only intend to use the built-in MQTT support then you can build and configure SAM as - an extension or simply refer to "php_sam.php" with a "requires" or "requires_once" clause - in your PHP script. In this case you need only install the code without building the - extension using the pear installer: - <screen> - <![CDATA[ - pecl install -B SAM -]]> - </screen> - </para> - <section xml:id='sam.installation.prerequisites'> - <title>Prerequisites</title> - <para> - The SAM extension interfaces to the IBM Messaging and Queuing - middleware products using a set of libraries and some client side code - referred to as XMS. This package is available as a free download in - the guise of IBM support pack IA94. There is a description of this - package and download links in the article <link xlink:href="&url.ibm.ia94;"> - Introducing XMS - The IBM Message Service API</link>. - </para> - <para> - If you intend to use SAM to access the Messaging and Queuing - infrastructure within WebSphere MQ then you will also need to have - installed a local MQ queue manager or installed the WebSphere MQ - clients package. The clients package is freely available as a support - pack (<link xlink:href="&url.ibm.mqc6;">MQC6</link>). - </para> - <para> - If you are only aiming to experiment with sending messages to and from - WebSphere Application Server queues using the WebSphere Platform - Messaging protocol (WPM) then you do not need to install the MQC6 - package. - </para> - <para> - After installing these packages you will need to ensure the XMS binary - and, if you are using it, the MQ client bin directory are included in - the PATH environment variable so that Apache and PHP can find the - dependent .DLLs/libraries. - </para> - </section> - <section xml:id='sam.installation.linux'> - <title>Linux installation steps</title> - <para> -The sam extension is supplied as a PECL module, which -you should be able to download and install in one step as follows: - <screen> - <![CDATA[ -pecl install sam -]]> - </screen> - (Depending on your php environment, you will probably need to be root - to do this.) - </para> - <para> - Make sure that the module is loaded by PHP, by adding following line - to &php.ini;: - <screen> -<![CDATA[ -extension=sam.so -]]> - </screen> - If you intend to use the XMS support to access the IBM Messaging and Queuing family - you must also enable the SAM XMS extension. - <screen> - <![CDATA[ -extension=sam_xms.so -]]> - </screen> - </para> - <para> -If you cannot use the PEAR installer, you can download the extension and build -it manually: - <screen> -<![CDATA[ -pear download sam #downloads sam-<version>.tgz -tar -xzf sam-<version>.tgz -cd sam-<version> -phpize -./configure -make -make install #you may need to be root for this step -]]> - </screen> - </para> - <para> - To work with the very latest source, you'll need to extract it from - cvs and build manually as above. - </para> - </section> - <section xml:id='sam.installation.windows'> - <title>Windows installation steps</title> - <para> -You will probably need to build the sam extension for Windows as there -are only a limited range of pre-built binaries available from the SAM website. -The extension can be built using the standard Windows extension build procedures. - </para> - <para> - You will need the PHP source tree for the version of PHP you wish to - build the SAM extension against which you can obtain from php.net. - This should be unpacked into a working directory of your choice. - </para> - <para> - You will also need the libraries and headers used by PHP extensions - available from http://www.php.net/extra/win32build.zip and this - should be unzipped so that is in your working directory. - </para> - <para> - You should have something like: - <screen> -<![CDATA[ -c:\php-build\- - | - |---php-5.0.5--|---build - | |---ext - | |--- ... - | - |---win32build--|---bin - |---include - |---lib -]]> - </screen> - </para> - <para> - You will need a compiler such as the free version of Visual Studio C++ - Express from the Microsoft web site. Also you need the Microsoft - Windows Platform SDK which again can be downloaded from the Microsoft web site. - </para> - <para> -Obtain the SAM extension source using pear (pecl download sam) or by using -CVS and copy the files to a new "sam" directory under the "ext" directory -in your PHP source tree. - </para> - <para> - To build the extension open a build environment window by going to the - start menu->all programs->microsoft platform SDK for windows-> - open build environment window->windows 200 build environment-> - set windows 2000 build environment (retail) - </para> - <para> - This should open a command prompt with all the environment variables - set up to access the platform SDK etc. You then need to set the - environment variables for Visual Studio by issuing the command - "vcvars32.bat" in the window. - </para> - <para> - Change directory to your working directory e.g. cd c:\php-build. Then - make sure the win32build tools are accessible by adding them to the - PATH environment variable: - <screen> -<![CDATA[ -set PATH=..\win32build\bin;%PATH% -]]> - </screen> - </para> - <para> - Run the buildconf.bat command. This should rebuild the configure.js - file. - </para> - <para> -Run the cscript command with the appropriate options. To build just the -SAM extension framework and MQTT support use: - <screen> - <![CDATA[ -cscript /nologo configure.js --with-sam -]]> - </screen> -To build the SAM framework and the XMS support use: - <screen> - <![CDATA[ -cscript /nologo configure.js --with-sam --with-sam_xms="c:\program files\ibm\xms" -]]> - </screen> - </para> - <para> -The additional parameter passed for sam_xms is the installation path to the -XMS libraries and runtime that were installed as described under prerequisites -at the top of this page. - </para> - <para> - You can specify whatever other cscript parameters you require to - include or exclude items from the php build or select options. - </para> - <para> -Assuming all has gone well so far you can now finally run a make for the SAM framework! - <screen> - <![CDATA[ -nmake php_sam.dll -]]> - </screen> -Also if you are using the XMS support you must make the sam_xms extensions: - <screen> - <![CDATA[ -nmake php_sam_xms.dll -]]> - </screen> - </para> - <para> -If you have used Visual Studio 2005 to build the DLLs please see below for additional steps that -must be carried out before proceeding further. - </para> - <para> -The DLLs created (php_sam.dll and optionally php_sam_xms.dll) can now be copied to the -subdirectory appropriate for your PHP set-up. Make sure that the module(s) are loaded by PHP, by adding following line to - &php.ini; - : - <screen> - <![CDATA[ -extension=php_sam.dll -]]> - </screen> - If you intend to use the XMS support to access the IBM Messgaing and Queuing family - you must also enable the SAM XMS extension. - <screen> - <![CDATA[ -extension=php_sam_xms.dll -]]> - </screen> - </para> - </section> - <section xml:id='sam.installation.VS2005'> - <title>Additional steps for Visual Studio 2005</title> - <para> - If you build the SAM extension with the Microsoft Visual Studio 2005 - compiler and tools you need to perform an additional step in the build - process to ensure the <filename>php_sam.dll</filename> is able to link - with the C runtime libraries at runtime. This step includes the - dependancy manifest into the DLL. Switch to the directory where the - <filename>php_sam.dll</filename> has been generated (usually - Release_TS or Debug_TS below the php source directory) and issue the - following magic incantation: - <screen> -<![CDATA[ -mt.exe -manifest php_sam.dll.manifest -outputresource:php_sam.dll;2 -]]> - </screen> -If you are using the XMS capabilities you will need to do the same with the -SAM XMS DLL: - <screen> - <![CDATA[ -mt.exe -manifest php_sam_xms.dll.manifest -outputresource:php_sam_xms.dll;2 -]]> - </screen> - </para> - <para> - If you build the SAM extension using the compiler and libaries from - Microsoft Visual Studio 2005 you will also need to ensure that the - runtime components are installed on the system on which you intend to - use SAM. This can be accomplished by installing Visual Studio 2005 or - by using the freely distributable - <link xlink:href="&url.ms.crt;">runtime package</link>. - </para> - </section> - <section xml:id='sam.installation.configutaion'> - <title>Protocol support and mapping</title> - <para> -The SAM framework can be extended to support other messaging protocols and connection mechanisms. To add -support for a new protocol or connection library a support class has to be defined, either as a C extension -or as a PHP script, and a "factory" script must be created. The support class must implement all the -methods of the SAMConnection class though it should not inherit from SAMConnection. The factory script -will be called by the SAM framework to create an instance of the implemented class. The way SAM chooses -which factory to call is based on the protocol specified as the first parameter of the "connect" call. - </para> - <para> -By default the built-in MQTT support will be used if a connect call specifies a protocol of SAM_MQTT ("mqtt"), for -any other protocol SAM will attempt to use the XMS support extension. To add support for additional -protocols or to modify the default behavior entries may be added to &php.ini; in the [sam] section. The -default mapping is equivalent to the following entries: - <screen> - <![CDATA[ -[sam] -sam.factory.mqtt=mqtt -sam.factory.wmq=xms -sam.factory.wmq:client=xms -sam.factory.wmq:bindings=xms -sam.factory.wpm=xms -sam.factory.rtt=xms -]]> - </screen> -As can be seen from these examples the entries take the form of "sam.factory.pppp=xxx" where pppp is the protocol -string specified on the connect call and xxx is a factory suffix. Note: SAM defines constants for these protocol -strings such that SAM_WMQ=wmq, SAM_WPM=wpm, SAM_RTT=rtt, SAM_MQTT=mqtt, etc. - </para> - <para> -When identifying the support code to use on a connect call SAM looks up the protocol name in the &php.ini; entries -and then invokes a factory script named sam_factory_xxx.php. If no entry is found the support will default to XMS. - </para> - </section> - </section> <!-- xml:id=sam.installation --> - - <section xml:id='sam.usage'> - <title>API Usage</title> - - <section xml:id='sam.connections'> - <title>Connections</title> - <para> - In order to perform any messaging and queueing functions a connection - must be established with a messaging server by creating a SAMConnection - object and calling its "connect" method, with a set of connection - properties, to connect the PHP script to the messaging server. Until - such time as the SAMConnection object is destroyed the connection - will be maintained and available for use. All SAMConnection objects - are destroyed when the PHP script exits. - </para> - <para> - A set of default properties may be used in connecting to a messaging - server but as a minimum the PHP script must specify a protocol to be - used. - </para> - <para> - <example> - <title>Creating a connection and connecting to a remote WebSphere MQSeries Messaging Server</title> - <programlisting role='php'> -<![CDATA[ -<?php - $conn = new SAMConnection(); - $conn->connect(SAM_WMQ, array(SAM_HOST => 'myhost.mycompany.com', - SAM_PORT => 1506, - SAM_BROKER => 'mybroker')); -?> -]]> - </programlisting> - </example> - </para> - <para> - <example> - <title>Creating a connection and connecting to a remote WebSphere Application Server</title> - <programlisting role='php'> -<![CDATA[ -<?php - $conn = new SAMConnection(); - $conn->connect(SAM_WPM, array(SAM_ENDPOINTS => 'localhost:7278:BootstrapBasicMessaging', - SAM_BUS => 'Bus1', - SAM_TARGETCHAIN => 'InboundBasicMessaging')); -?> -]]> - </programlisting> - </example> - </para> - <para> - <example> - <title>Creating a connection and connecting to an MQTT server</title> - <programlisting role='php'> - <![CDATA[ -<?php - $conn = new SAMConnection(); - $conn->connect(SAM_MQTT, array(SAM_HOST => 'myhost.mycompany.com', - SAM_PORT => 1883)); -?> - ]]> - </programlisting> - </example> - </para> - </section> <!-- xml:id=sam.connections --> - - <section xml:id='sam.messages'> - <title>Messages</title> - <para> - Messages sent to and received from queues are represented by the - SAMMessage object. The SAMMessage object encapsulates the body of - the message (if one exists) and the header properties associated with - the message. A SAMMessage object is either supplied as a parameter to - a messaging operation or returned as a result. - </para> - <para> - <example> - <title>Creating a message with a simple text body</title> - <programlisting role="php"> -<![CDATA[ -<?php -$msg = new SAMMessage('This is a simple text message'); -?> -]]> - </programlisting> - </example> - </para> - <para> - Messages may have header properties associated with them that provide - control over the transport of the message or further information to the - receiving application. By default message properties are delivered to - the underlying messaging system as strings and in this case they may be - set with the following simple syntax: - </para> - <para> - <example> - <title>Setting a text format property using the default syntax</title> - <programlisting role="php"> -<![CDATA[ -<?php - $msg->header->myPropertyName = 'textData'; -?> -]]> - </programlisting> - </example> - </para> - <para> - If it is desired to pass type information an alternative syntax may be - used where the value and the type hint are passed in an associative - array: - </para> - <para> - <example> - <title>Setting a property using a type hint</title> - <programlisting role="php"> -<![CDATA[ -<?php - $msg->header->myPropertyName = array(3.14159, SAM_FLOAT); -?> -]]> - </programlisting> - </example> - </para> - <para> - Properties may also be extracted from the header of a message. - </para> - <para> - <example> - <title>Retrieving a property from a message header</title> - <programlisting role="php"> -<![CDATA[ -<?php - $myProperty = $msg->header->myPropertyName; -?> -]]> - </programlisting> - </example> - </para> - </section> <!-- xml:id=sam.messages --> - - <section xml:id='sam.operations'> - <title>Messaging operations</title> - <para> - All messaging operations are performed through calls to methods on the - connection object. - To add a message to a queue the "send" method is used, to obtain a - message from a queue the "receive" method is used. Other methods - provide publish and subscribe functionality and control of transaction - boundaries. - </para> - <para> - <example> - <title>Adding a message to a queue and receiving a response</title> - <programlisting role="php"> -<![CDATA[ -<?php -$msg = new SAMMessage('This is a simple text message'); -$msg->header->SAM_REPLY_TO = 'queue://receive/test'; -$correlid = $conn->send('queue://send/test', $msg); - -if (!$correlid) { - // The Send failed! - echo "Send failed ($conn->errno) $conn->error"; -} else { - $resp = $conn->receive('queue://receive/test', array(SAM_CORRELID => $correlid)); -} -?> -]]> - </programlisting> - </example> - </para> - </section> <!-- xml:id=sam.operations --> - <section xml:id='sam.pubsub'> - <title>Publish/Subscribe and suscriptions to topics</title> - <para> - SAM allows messages to be sent either to queues or, for WebSphere MQ - and WPM, to publish/subscribe topics. - A topic desintation is specified to SAM in the usual way, i.e. in the - form 'topic://fred', rather than the form 'queue://AQUEUE' used for - point to point operation. To use publish/subscribe it is simply - necessary to specify the correct broker name on the SAMConnect - "connect" call and the desired topic in the destination argument to - the SAMConnect "send" and "receive" calls. The PHP interface is - otherwise identical to the point to point model. - </para> - <para> - By default, SAM creates non-durable subscriptions when using - publish/subscribe. This means that if a client application is - inactive when messages are published to a topic, then it will not - receive them when it subsequently restarted. SAM does also allow - durable subscriptions to be made to topics when using WPM or WebSphere - MQ publish/subscribe. The purpose of these subscriptions is to allow - data to be received by a client application even if that client was not - active at the time the data was published. - </para> - <para> - Durable subscriptions are specified by using the SAMConnect "subscribe" - call. This method takes the destination topic as an input parameter and - returns a subscription identifier that may be used on subsequent - "receive" calls. When the subscription is no longer required the - SAMConnection "unsubscribe" method should be used to delete the - subscription. - </para> - <para> - <example> - <title>Creating a durable subscription to a topic</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$subName = $conn->subscribe('topic://A'); - -if (!$subName) { - echo "Subscribe failed"; -} else { - # Subscribe was OK - // ... -} -?> -]]> - </programlisting> - </example> - </para> - <para> - <example> - <title>Subscribing to a topic using a WebSphere Platform Messaging (WPM) server</title> - <programlisting role="php"> -<![CDATA[ -<?php -$conn = new SAMConnection(); -// Note: For pub/sub on WPM, when connecting the name of a messaging engine -// to hold the durable subscription (SAM_WPM_DUR_SUB_HOME) must be specified. -$conn->connect(SAM_WMQ, array(SAM_ENDPOINTS => 'localhost:7278:BootstrapBasicMessaging', - SAM_BUS => 'Bus1', - SAM_TARGETCHAIN => 'InboundBasicMessaging' - SAM_WPM_DUR_SUB_HOME => 'MyMachineNode01.server1-Bus1')); - -$subName = $conn->subscribe('topic://A'); - -if (!$subName) { - echo "Subscribe failed"; -} else { - # Subscribe was OK - // ... -} -?> -]]> - </programlisting> - </example> - </para> - <para> - <example> - <title>Receiving published data using a durable subscription</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$msg = $conn->receive($subName); -if ($msg) { - echo "Received a message OK"; -} else { - echo "The receive failed"; -} - -?> -]]> - </programlisting> - </example> - </para> - <para> - <example> - <title>Deleting a durable subscription to a topic</title> - <programlisting role="php"> -<![CDATA[ -<?php - -if (!$conn->unsubscribe($subName)) { - echo "Unsubscribe failed"; -} - -?> -]]> - </programlisting> - </example> - </para> - </section> <!-- xml:id=sam.pubsub --> - <section xml:id='sam.errors'> - <title>Error handling</title> - <para> - All SAMConnection methods that provide access to messaging operations - return &false; if an error occurred in processing the request. - In addition the SAMConnection object has two properties, "errno" - and "error", that provide respectively the error number and - text description of the last error to occur on the connection. - </para> - <para> - <example> - <title>Handling an error from a method that returns no result</title> - <programlisting role="php"> - <![CDATA[ -<?php - if (!$conn->commit()) { - // The commit failed! - echo "Commit failed ($conn->errno) $conn->error"; - } -?> - ]]> - </programlisting> - </example> - </para> - <para> - <example> - <title>Handling an error from a method that returns a result</title> - <programlisting role="php"> -<![CDATA[ -<?php -$correlid = $conn->send('queue://send/test', $msg); - -if (!$correlid) { - // The Send failed! - echo "Send failed ($conn->errno) $conn->error"; -} else { - ... -} -?> -]]> - </programlisting> - </example> - </para> - </section> <!-- xml:id=sam.errors --> - </section> <!-- xml:id=sam.usage --> + <!-- FIXME: Upgrade to the new-oo-markup --> <!-- class definition section --> <section xml:id='sam.classes'> &reftitle.classes; @@ -827,9 +179,6 @@ </section> <!-- xml:id=sam.classes --> - <!-- Include the stuff from constants.xml? --> - &reference.sam.constants; - </partintro> <!-- This seems to create the table of contents --> @@ -856,3 +205,4 @@ vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/sockets/constants.xml?r1=1.7&r2=1.7.2.1&diff_format=u Index: phpdoc/en/reference/sockets/constants.xml diff -u phpdoc/en/reference/sockets/constants.xml:1.7 phpdoc/en/reference/sockets/constants.xml:1.7.2.1 --- phpdoc/en/reference/sockets/constants.xml:1.7 Thu Aug 16 14:58:11 2007 +++ phpdoc/en/reference/sockets/constants.xml Sat Dec 8 16:58:30 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> -<section xml:id="sockets.constants" xmlns="http://docbook.org/ns/docbook"> +<!-- $Revision: 1.7.2.1 $ --> +<appendix xml:id="sockets.constants" xmlns="http://docbook.org/ns/docbook"> &reftitle.constants; &extension.constants; <variablelist> @@ -379,7 +379,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/sockets/reference.xml?r1=1.26.2.1&r2=1.26.2.2&diff_format=u Index: phpdoc/en/reference/sockets/reference.xml diff -u phpdoc/en/reference/sockets/reference.xml:1.26.2.1 phpdoc/en/reference/sockets/reference.xml:1.26.2.2 --- phpdoc/en/reference/sockets/reference.xml:1.26.2.1 Wed Oct 3 11:41:15 2007 +++ phpdoc/en/reference/sockets/reference.xml Sat Dec 8 16:58:30 2007 @@ -1,249 +1,13 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.26.2.1 $ --> -<!-- Purpose: remote.other --> -<!-- Membership: bundled --> +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.26.2.2 $ --> - <reference xml:id="ref.sockets" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <title>Socket Functions</title> - <titleabbrev>Sockets</titleabbrev> +<reference xml:id="ref.sockets" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <title>Socket &Functions;</title> - <partintro> + &reference.sockets.functions.entities; - <section xml:id="sockets.intro"> - &reftitle.intro; - <para> - The socket extension implements a low-level interface to the socket - communication functions based on the popular BSD sockets, providing the - possibility to act as a socket server as well as a client. - </para> - <para> - For a more generic client-side socket interface, see - <function>stream_socket_client</function>, - <function>stream_socket_server</function>, - <function>fsockopen</function>, and - <function>pfsockopen</function>. - </para> - <para> - When using these functions, it is important to remember that while - many of them have identical names to their C counterparts, they - often have different declarations. Please be sure to read the - descriptions to avoid confusion. - </para> - <para> - Those unfamiliar with socket programming can find a lot - of useful material in the appropriate Unix man pages, and there is a great - deal of tutorial information on socket programming in C on the web, much - of which can be applied, with slight modifications, to socket programming - in PHP. The <link xlink:href="&url.socket.faq;">Unix Socket - FAQ</link> might be a good start. - </para> - <note> - <para> - &pecl.moved-ver;5.3.0. - </para> - </note> - </section> - - <section xml:id="sockets.requirements"> - &reftitle.required; - &no.requirement; - </section> - - &reference.sockets.configure; - - <section xml:id="sockets.configuration"> - &reftitle.runtime; - &no.config; - </section> +</reference> - <section xml:id="sockets.resources"> - &reftitle.resources; - <para> - <function>socket_accept</function>, - <function>socket_create_listen</function> and - <function>socket_create</function> return socket recources. - </para> - </section> - - &reference.sockets.constants; - - <section xml:id="sockets.errors"> - <title>Socket Errors</title> - <para> - The socket extension was written to provide a usable interface to the - powerful BSD sockets. Care has been taken that the functions work equally - well on Win32 and Unix implementations. Almost all of the sockets - functions may fail under certain conditions and therefore emit an - <constant>E_WARNING</constant> message describing the error. Sometimes this - doesn't happen to the desire of the developer. For example the function - <function>socket_read</function> may suddenly emit an - <constant>E_WARNING</constant> message because the connection broke - unexpectedly. It's common to suppress the warning with the - <literal>@</literal>-operator and catch the error code within the - application with the <function>socket_last_error</function> function. You - may call the <function>socket_strerror</function> function with this error - code to retrieve a string describing the error. See their description for - more information. - </para> - <note> - <para> - The <constant>E_WARNING</constant> messages generated by the socket - extension are in English though the retrieved error message will appear - depending on the current locale (<constant>LC_MESSAGES</constant>): - <programlisting role="php"> -<![CDATA[ -Warning - socket_bind() unable to bind address [98]: Die Adresse wird bereits verwendet -]]> - </programlisting> - </para> - </note> - </section> - - <section xml:id="sockets.examples"> - &reftitle.examples; - <para> - <example> - <title>Socket example: Simple TCP/IP server</title> - <para> - This example shows a simple talkback server. Change the - <varname>address</varname> and <varname>port</varname> variables - to suit your setup and execute. You may then connect to the - server with a command similar to: <command>telnet 192.168.1.53 - 10000</command> (where the address and port match your - setup). Anything you type will then be output on the server - side, and echoed back to you. To disconnect, enter 'quit'. - </para> - <programlisting role="php"> -<![CDATA[ -#!/usr/local/bin/php -q -<?php -error_reporting(E_ALL); - -/* Allow the script to hang around waiting for connections. */ -set_time_limit(0); - -/* Turn on implicit output flushing so we see what we're getting - * as it comes in. */ -ob_implicit_flush(); - -$address = '192.168.1.53'; -$port = 10000; - -if (($sock = socket_create(AF_INET, SOCK_STREAM, SOL_TCP)) === false) { - echo "socket_create() failed: reason: " . socket_strerror(socket_last_error()) . "\n"; -} - -if (socket_bind($sock, $address, $port) === false) { - echo "socket_bind() failed: reason: " . socket_strerror(socket_last_error($sock)) . "\n"; -} - -if (socket_listen($sock, 5) === false) { - echo "socket_listen() failed: reason: " . socket_strerror(socket_last_error($sock)) . "\n"; -} - -do { - if (($msgsock = socket_accept($sock)) === false) { - echo "socket_accept() failed: reason: " . socket_strerror(socket_last_error($sock)) . "\n"; - break; - } - /* Send instructions. */ - $msg = "\nWelcome to the PHP Test Server. \n" . - "To quit, type 'quit'. To shut down the server type 'shutdown'.\n"; - socket_write($msgsock, $msg, strlen($msg)); - - do { - if (false === ($buf = socket_read($msgsock, 2048, PHP_NORMAL_READ))) { - echo "socket_read() failed: reason: " . socket_strerror(socket_last_error($msgsock)) . "\n"; - break 2; - } - if (!$buf = trim($buf)) { - continue; - } - if ($buf == 'quit') { - break; - } - if ($buf == 'shutdown') { - socket_close($msgsock); - break 2; - } - $talkback = "PHP: You said '$buf'.\n"; - socket_write($msgsock, $talkback, strlen($talkback)); - echo "$buf\n"; - } while (true); - socket_close($msgsock); -} while (true); - -socket_close($sock); -?> -]]> - </programlisting> - </example> - </para> - <para> - <example> - <title>Socket example: Simple TCP/IP client</title> - <para> - This example shows a simple, one-shot HTTP client. It simply - connects to a page, submits a HEAD request, echoes the reply, - and exits. - </para> - <programlisting role="php"> -<![CDATA[ -<?php -error_reporting(E_ALL); - -echo "<h2>TCP/IP Connection</h2>\n"; - -/* Get the port for the WWW service. */ -$service_port = getservbyname('www', 'tcp'); - -/* Get the IP address for the target host. */ -$address = gethostbyname('www.example.com'); - -/* Create a TCP/IP socket. */ -$socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP); -if ($socket === false) { - echo "socket_create() failed: reason: " . socket_strerror(socket_last_error()) . "\n"; -} else { - echo "OK.\n"; -} - -echo "Attempting to connect to '$address' on port '$service_port'..."; -$result = socket_connect($socket, $address, $service_port); -if ($result === false) { - echo "socket_connect() failed.\nReason: ($result) " . socket_strerror(socket_last_error($socket)) . "\n"; -} else { - echo "OK.\n"; -} - -$in = "HEAD / HTTP/1.1\r\n"; -$in .= "Host: www.example.com\r\n"; -$in .= "Connection: Close\r\n\r\n"; -$out = ''; - -echo "Sending HTTP HEAD request..."; -socket_write($socket, $in, strlen($in)); -echo "OK.\n"; - -echo "Reading response:\n\n"; -while ($out = socket_read($socket, 2048)) { - echo $out; -} - -echo "Closing socket..."; -socket_close($socket); -echo "OK.\n\n"; -?> -]]> - </programlisting> - </example> - </para> - </section> - </partintro> - -&reference.sockets.functions.entities; - - </reference> <!-- Keep this comment at the end of the file Local variables: mode: sgml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ssh2/constants.xml?r1=1.3&r2=1.3.2.1&diff_format=u Index: phpdoc/en/reference/ssh2/constants.xml diff -u phpdoc/en/reference/ssh2/constants.xml:1.3 phpdoc/en/reference/ssh2/constants.xml:1.3.2.1 --- phpdoc/en/reference/ssh2/constants.xml:1.3 Wed Jun 20 22:25:27 2007 +++ phpdoc/en/reference/ssh2/constants.xml Sat Dec 8 16:58:30 2007 @@ -1,7 +1,7 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.3.2.1 $ --> <!-- Generated by xml_proto.php v2.1. Found in /scripts directory of phpdoc. --> -<section xml:id="ssh2.constants" xmlns="http://docbook.org/ns/docbook"> +<appendix xml:id="ssh2.constants" xmlns="http://docbook.org/ns/docbook"> &reftitle.constants; &extension.constants; <variablelist> @@ -147,7 +147,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/ssh2/reference.xml?r1=1.6.2.1&r2=1.6.2.2&diff_format=u Index: phpdoc/en/reference/ssh2/reference.xml diff -u phpdoc/en/reference/ssh2/reference.xml:1.6.2.1 phpdoc/en/reference/ssh2/reference.xml:1.6.2.2 --- phpdoc/en/reference/ssh2/reference.xml:1.6.2.1 Wed Oct 3 11:41:15 2007 +++ phpdoc/en/reference/ssh2/reference.xml Sat Dec 8 16:58:30 2007 @@ -1,27 +1,10 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.6.2.1 $ --> -<!-- Purpose: remote.other --> -<!-- Membership: pecl, external --> +<!-- $Revision: 1.6.2.2 $ --> <reference xml:id="ref.ssh2" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <title>Secure Shell2 Functions</title> + <title>Secure Shell2 &Functions;</title> <titleabbrev>ssh2</titleabbrev> - <partintro> - <section xml:id="ssh2.intro"> - &reftitle.intro; - <para> - Bindings to the <link xlink:href="&url.libssh2;">libssh2</link> library which - provide access to resources (shell, remote exec, tunneling, file transfer) - on a remote machine using a secure cryptographic transport. - </para> - </section> - - &reference.ssh2.installation; - - &reference.ssh2.constants; - - </partintro> &reference.ssh2.functions.entities; </reference> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/svn/constants.xml?r1=1.3&r2=1.3.2.1&diff_format=u Index: phpdoc/en/reference/svn/constants.xml diff -u phpdoc/en/reference/svn/constants.xml:1.3 phpdoc/en/reference/svn/constants.xml:1.3.2.1 --- phpdoc/en/reference/svn/constants.xml:1.3 Thu Jun 21 13:15:25 2007 +++ phpdoc/en/reference/svn/constants.xml Sat Dec 8 16:58:30 2007 @@ -1,6 +1,6 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.3 $ --> -<section xml:id="svn.constants" xmlns="http://docbook.org/ns/docbook"> +<!-- $Revision: 1.3.2.1 $ --> +<appendix xml:id="svn.constants" xmlns="http://docbook.org/ns/docbook"> &reftitle.constants; &extension.constants; <variablelist> @@ -395,7 +395,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/svn/reference.xml?r1=1.2.2.1&r2=1.2.2.2&diff_format=u Index: phpdoc/en/reference/svn/reference.xml diff -u phpdoc/en/reference/svn/reference.xml:1.2.2.1 phpdoc/en/reference/svn/reference.xml:1.2.2.2 --- phpdoc/en/reference/svn/reference.xml:1.2.2.1 Wed Oct 3 11:41:16 2007 +++ phpdoc/en/reference/svn/reference.xml Sat Dec 8 16:58:30 2007 @@ -1,46 +1,12 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2.2.1 $ --> -<!-- Purpose: remote.other --> -<!-- Membership: bundled, pecl --> -<!-- State: new --> +<!-- $Revision: 1.2.2.2 $ --> + <reference xml:id="ref.svn" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>Subversion &Functions;</title> <titleabbrev>SVN</titleabbrev> - <partintro> - <section xml:id="svn.intro"> - &reftitle.intro; - &warn.experimental; - <para> - This extension implements PHP bindings for - <link xlink:href="&url.svn;">Subversion</link> (SVN), a version - control system, allowing PHP scripts to communicate with SVN repositories - and working copies without direct command line calls to the - <filename>svn</filename> - executable. - </para> - </section> - <section xml:id="svn.requirements"> - &reftitle.required; - <para> - The Subversion binaries are not necessary to use this - extension. However, when compiling the extension, libsvn - (the Subversion headers) must be available. - </para> - </section> - &reference.svn.configure; - <section xml:id="svn.resources"> - &reftitle.resources; - <para> - Subversion's lower-level svn_fs_* functions make use of resources - that reference local file-system repositories. They can probably be - created using <function>svn_repos_fs</function> and - <function>svn_fs_revision_root</function>. (verify?) - </para> - &no.resource; - </section> - &reference.svn.constants; - </partintro> + &reference.svn.functions.entities; + </reference> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/tcpwrap/reference.xml?r1=1.4.2.1&r2=1.4.2.2&diff_format=u Index: phpdoc/en/reference/tcpwrap/reference.xml diff -u phpdoc/en/reference/tcpwrap/reference.xml:1.4.2.1 phpdoc/en/reference/tcpwrap/reference.xml:1.4.2.2 --- phpdoc/en/reference/tcpwrap/reference.xml:1.4.2.1 Wed Oct 3 11:41:16 2007 +++ phpdoc/en/reference/tcpwrap/reference.xml Sat Dec 8 16:58:30 2007 @@ -1,27 +1,11 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.4.2.1 $ --> -<!-- Purpose: remote.other --> -<!-- Membership: pecl --> +<!-- $Revision: 1.4.2.2 $ --> - <reference xml:id="ref.tcpwrap" xmlns="http://docbook.org/ns/docbook"> - <title>TCP Wrappers Functions</title> - <titleabbrev>TCP Wrappers</titleabbrev> +<reference xml:id="ref.tcpwrap" xmlns="http://docbook.org/ns/docbook"> + <title>TCP Wrappers &Functions;</title> - <partintro> - <section xml:id="tcpwrap.intro"> - &reftitle.intro; - <para> - The TCP wrappers provides a classical Unix mechanism which has been - designed to check if the remote client is able to connect from the given IP - address. - </para> - </section> - - &reference.tcpwrap.configure; - - </partintro> &reference.tcpwrap.functions.entities; - </reference> +</reference> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/yaz/reference.xml?r1=1.21.2.2&r2=1.21.2.3&diff_format=u Index: phpdoc/en/reference/yaz/reference.xml diff -u phpdoc/en/reference/yaz/reference.xml:1.21.2.2 phpdoc/en/reference/yaz/reference.xml:1.21.2.3 --- phpdoc/en/reference/yaz/reference.xml:1.21.2.2 Fri Nov 2 12:13:28 2007 +++ phpdoc/en/reference/yaz/reference.xml Sat Dec 8 16:58:30 2007 @@ -1,137 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.21.2.2 $ --> -<!-- Purpose: remote.other --> -<!-- Membership: pecl, external --> +<!-- $Revision: 1.21.2.3 $ --> - <reference xml:id="ref.yaz" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <title>YAZ Functions</title> - <titleabbrev>YAZ</titleabbrev> - - <partintro> - <section xml:id="yaz.intro"> - &reftitle.intro; - <para> - This extension offers a PHP interface to the - <productname>YAZ</productname> toolkit that implements the - <link xlink:href="&url.yaz-loc;">Z39.50 - Protocol for Information Retrieval</link>. - With this extension you can easily implement a Z39.50 origin (client) - that searches or scans Z39.50 targets (servers) in parallel. - </para> - <para> - The module hides most of the complexity of Z39.50 so it should be - fairly easy to use. It supports persistent stateless connections very - similar to those offered by the various RDB APIs that are available - for PHP. This means that sessions are stateless but shared among - users, thus saving the connect and initialize phase steps in most - cases. - </para> - <para> - <productname>YAZ</productname> is available at <link - xlink:href="&url.yaz;">&url.yaz;</link>. You can find news information, - example scripts, etc. for this extension at <link - xlink:href="&url.yaz-phpyaz;">&url.yaz-phpyaz;</link>. - </para> - <note> - <para> - &pecl.moved-ver;5.0.0. - </para> - </note> - </section> - - &reference.yaz.configure; - - &reference.yaz.ini; - - <section xml:id="yaz.resources"> - &reftitle.resources; - &no.resource; - </section> - - <section xml:id="yaz.constants"> - &reftitle.constants; - &no.constants; - </section> - - <section xml:id="yaz.examples"> - &reftitle.examples; - <para> - PHP/YAZ keeps track of connections with targets - (Z-Associations). A resource represents a connection to a - target. - </para> - <para> - The script below demonstrates the parallel searching feature of - the API. When invoked with no arguments it prints a query form; else - (arguments are supplied) it searches the targets as given in array - <literal>host</literal>. - </para> - <para> - <example> - <title>Parallel searching using Yaz</title> - <programlisting role="php"> -<![CDATA[ -<?php -$host=$_REQUEST[host]; -$query=$_REQUEST[query]; -$num_hosts = count($host); -if (empty($query) || count($host) == 0) { - echo '<form method="get"> - <input type="checkbox" - name="host[]" value="bagel.indexdata.dk/gils" /> - GILS test - <input type="checkbox" - name="host[]" value="localhost:9999/Default" /> - local test - <input type="checkbox" checked="checked" - name="host[]" value="z3950.loc.gov:7090/voyager" /> - Library of Congress - <br /> - RPN Query: - <input type="text" size="30" name="query" /> - <input type="submit" name="action" value="Search" /> - </form> - '; -} else { - echo 'You searched for ' . htmlspecialchars($query) . '<br />'; - for ($i = 0; $i < $num_hosts; $i++) { - $id[] = yaz_connect($host[$i]); - yaz_syntax($id[$i], "usmarc"); - yaz_range($id[$i], 1, 10); - yaz_search($id[$i], "rpn", $query); - } - yaz_wait(); - for ($i = 0; $i < $num_hosts; $i++) { - echo '<hr />' . $host[$i] . ':'; - $error = yaz_error($id[$i]); - if (!empty($error)) { - echo "Error: $error"; - } else { - $hits = yaz_hits($id[$i]); - echo "Result Count $hits"; - } - echo '<dl>'; - for ($p = 1; $p <= 10; $p++) { - $rec = yaz_record($id[$i], $p, "string"); - if (empty($rec)) continue; - echo "<dt><b>$p</b></dt><dd>"; - echo nl2br($rec); - echo "</dd>"; - } - echo '</dl>'; - } -} -?> -]]> - </programlisting> - </example> - </para> - </section> - </partintro> +<reference xml:id="ref.yaz" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <title>YAZ &Functions;</title> &reference.yaz.functions.entities; - </reference> +</reference> + <!-- Keep this comment at the end of the file Local variables: mode: sgml @@ -152,3 +28,4 @@ vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/nis/constants.xml?r1=1.5&r2=1.5.2.1&diff_format=u Index: phpdoc/en/reference/nis/constants.xml diff -u phpdoc/en/reference/nis/constants.xml:1.5 phpdoc/en/reference/nis/constants.xml:1.5.2.1 --- phpdoc/en/reference/nis/constants.xml:1.5 Wed Jun 20 22:25:05 2007 +++ phpdoc/en/reference/nis/constants.xml Sat Dec 8 16:58:30 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<section xml:id="nis.constants" xmlns="http://docbook.org/ns/docbook"> +<!-- $Revision: 1.5.2.1 $ --> +<appendix xml:id="nis.constants" xmlns="http://docbook.org/ns/docbook"> &reftitle.constants; &extension.constants; <variablelist> @@ -181,7 +181,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/nis/reference.xml?r1=1.10.2.1&r2=1.10.2.2&diff_format=u Index: phpdoc/en/reference/nis/reference.xml diff -u phpdoc/en/reference/nis/reference.xml:1.10.2.1 phpdoc/en/reference/nis/reference.xml:1.10.2.2 --- phpdoc/en/reference/nis/reference.xml:1.10.2.1 Wed Oct 3 11:41:13 2007 +++ phpdoc/en/reference/nis/reference.xml Sat Dec 8 16:58:30 2007 @@ -1,54 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.10.2.1 $ --> -<!-- Purpose: remote.other --> -<!-- Membership: pecl --> +<!-- $Revision: 1.10.2.2 $ --> - <reference xml:id="ref.nis" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <title>YP/NIS Functions</title> - <titleabbrev>YP/NIS</titleabbrev> +<reference xml:id="ref.nis" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <title>YP/NIS &Functions;</title> - <partintro> + &reference.nis.functions.entities; - <section xml:id="nis.intro"> - &reftitle.intro; - <para> - NIS (formerly called Yellow Pages) allows network management of - important administrative files (e.g. the password file). For more - information refer to the NIS manpage and <link xlink:href="&url.nis;"> - The Linux NIS(YP)/NYS/NIS+ HOWTO</link>. There is also a book called <link - xlink:href="&url.nis.book;">Managing NFS and NIS</link> by Hal Stern. - </para> - <note> - <para> - &pecl.moved-ver;5.1.0. - </para> - </note> - ¬e.no-windows.extension; - </section> - - <section xml:id="nis.requirements"> - &reftitle.required; - <para> - None besides functions from standard Unix libraries which are - always available (either <filename>libc</filename> or - <filename>libnsl</filename>, configure will detect which one to use). - </para> - </section> - - &reference.nis.configure; +</reference> - <section xml:id="nis.configuration"> - &reftitle.runtime; - &no.config; - </section> - - &reference.nis.constants; - - </partintro> - -&reference.nis.functions.entities; - - </reference> <!-- Keep this comment at the end of the file Local variables: mode: sgml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/snmp/constants.xml?r1=1.3&r2=1.3.2.1&diff_format=u Index: phpdoc/en/reference/snmp/constants.xml diff -u phpdoc/en/reference/snmp/constants.xml:1.3 phpdoc/en/reference/snmp/constants.xml:1.3.2.1 --- phpdoc/en/reference/snmp/constants.xml:1.3 Wed Jun 20 22:25:24 2007 +++ phpdoc/en/reference/snmp/constants.xml Sat Dec 8 16:58:30 2007 @@ -1,6 +1,6 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.3 $ --> -<section xml:id="snmp.constants" xmlns="http://docbook.org/ns/docbook"> +<!-- $Revision: 1.3.2.1 $ --> +<appendix xml:id="snmp.constants" xmlns="http://docbook.org/ns/docbook"> &reftitle.constants; &extension.constants; <variablelist> @@ -192,7 +192,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/snmp/reference.xml?r1=1.12.2.1&r2=1.12.2.2&diff_format=u Index: phpdoc/en/reference/snmp/reference.xml diff -u phpdoc/en/reference/snmp/reference.xml:1.12.2.1 phpdoc/en/reference/snmp/reference.xml:1.12.2.2 --- phpdoc/en/reference/snmp/reference.xml:1.12.2.1 Wed Oct 3 11:41:15 2007 +++ phpdoc/en/reference/snmp/reference.xml Sat Dec 8 16:58:30 2007 @@ -1,48 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.12.2.1 $ --> -<!-- Purpose: remote.other --> -<!-- Membership: bundled, external --> +<!-- $Revision: 1.12.2.2 $ --> - <reference xml:id="ref.snmp" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <title>SNMP Functions</title> - <titleabbrev>SNMP</titleabbrev> - - <partintro> - <section xml:id="snmp.intro"> - &reftitle.intro; - <para> - </para> - </section> - - <section xml:id="snmp.requirements"> - &reftitle.required; - <para> - In order to use the SNMP functions on Unix you need to install the - <link xlink:href="&url.net-snmp;">NET-SNMP</link> package. On Windows these - functions are only available on NT and not on Win95/98. - </para> - </section> - - &reference.snmp.configure; - - <section xml:id="snmp.configuration"> - &reftitle.runtime; - &no.config; - </section> - - <section xml:id="snmp.resources"> - &reftitle.resources; - <para> - </para> - </section> - - &reference.snmp.constants; - - </partintro> +<reference xml:id="ref.snmp" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <title>SNMP &Functions;</title> -&reference.snmp.functions.entities; + &reference.snmp.functions.entities; + +</reference> - </reference> <!-- Keep this comment at the end of the file Local variables: mode: sgml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/curl/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/curl/book.xml +++ phpdoc/en/reference/curl/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/curl/examples.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/curl/examples.xml +++ phpdoc/en/reference/curl/examples.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/curl/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/curl/setup.xml +++ phpdoc/en/reference/curl/setup.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/fam/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/fam/book.xml +++ phpdoc/en/reference/fam/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/fam/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/fam/setup.xml +++ phpdoc/en/reference/fam/setup.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ftp/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/ftp/book.xml +++ phpdoc/en/reference/ftp/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ftp/examples.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/ftp/examples.xml +++ phpdoc/en/reference/ftp/examples.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ftp/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/ftp/setup.xml +++ phpdoc/en/reference/ftp/setup.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/net_gopher/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/net_gopher/book.xml +++ phpdoc/en/reference/net_gopher/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/net_gopher/examples.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/net_gopher/examples.xml +++ phpdoc/en/reference/net_gopher/examples.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/net_gopher/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/net_gopher/setup.xml +++ phpdoc/en/reference/net_gopher/setup.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/hw/apache.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/hw/apache.xml +++ phpdoc/en/reference/hw/apache.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/hw/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/hw/book.xml +++ phpdoc/en/reference/hw/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/hw/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/hw/setup.xml +++ phpdoc/en/reference/hw/setup.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/hwapi/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/hwapi/book.xml +++ phpdoc/en/reference/hwapi/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/hwapi/constants.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/hwapi/constants.xml +++ phpdoc/en/reference/hwapi/constants.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/hwapi/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/hwapi/setup.xml +++ phpdoc/en/reference/hwapi/setup.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/http/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/http/book.xml +++ phpdoc/en/reference/http/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/http/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/http/setup.xml +++ phpdoc/en/reference/http/setup.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ircg/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/ircg/book.xml +++ phpdoc/en/reference/ircg/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ircg/constants.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/ircg/constants.xml +++ phpdoc/en/reference/ircg/constants.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ircg/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/ircg/setup.xml +++ phpdoc/en/reference/ircg/setup.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/java/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/java/book.xml +++ phpdoc/en/reference/java/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/java/constants.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/java/constants.xml +++ phpdoc/en/reference/java/constants.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/java/examples.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/java/examples.xml +++ phpdoc/en/reference/java/examples.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/java/servlet.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/java/servlet.xml +++ phpdoc/en/reference/java/servlet.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/java/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/java/setup.xml +++ phpdoc/en/reference/java/setup.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ldap/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/ldap/book.xml +++ phpdoc/en/reference/ldap/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ldap/examples.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/ldap/examples.xml +++ phpdoc/en/reference/ldap/examples.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ldap/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/ldap/setup.xml +++ phpdoc/en/reference/ldap/setup.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ldap/using.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/ldap/using.xml +++ phpdoc/en/reference/ldap/using.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/memcache/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/memcache/book.xml +++ phpdoc/en/reference/memcache/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/memcache/examples.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/memcache/examples.xml +++ phpdoc/en/reference/memcache/examples.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/memcache/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/memcache/setup.xml +++ phpdoc/en/reference/memcache/setup.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/mnogosearch/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/mnogosearch/book.xml +++ phpdoc/en/reference/mnogosearch/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/mnogosearch/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/mnogosearch/setup.xml +++ phpdoc/en/reference/mnogosearch/setup.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/network/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/network/book.xml +++ phpdoc/en/reference/network/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/network/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/network/setup.xml +++ phpdoc/en/reference/network/setup.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/notes/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/notes/book.xml +++ phpdoc/en/reference/notes/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/notes/constants.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/notes/constants.xml +++ phpdoc/en/reference/notes/constants.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/notes/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/notes/setup.xml +++ phpdoc/en/reference/notes/setup.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/sam/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/sam/book.xml +++ phpdoc/en/reference/sam/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/sam/examples.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/sam/examples.xml +++ phpdoc/en/reference/sam/examples.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/sam/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/sam/setup.xml +++ phpdoc/en/reference/sam/setup.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/sockets/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/sockets/book.xml +++ phpdoc/en/reference/sockets/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/sockets/errors.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/sockets/errors.xml +++ phpdoc/en/reference/sockets/errors.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/sockets/examples.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/sockets/examples.xml +++ phpdoc/en/reference/sockets/examples.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/sockets/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/sockets/setup.xml +++ phpdoc/en/reference/sockets/setup.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ssh2/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/ssh2/book.xml +++ phpdoc/en/reference/ssh2/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ssh2/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/ssh2/setup.xml +++ phpdoc/en/reference/ssh2/setup.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/svn/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/svn/book.xml +++ phpdoc/en/reference/svn/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/svn/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/svn/setup.xml +++ phpdoc/en/reference/svn/setup.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/tcpwrap/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/tcpwrap/book.xml +++ phpdoc/en/reference/tcpwrap/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/tcpwrap/constants.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/tcpwrap/constants.xml +++ phpdoc/en/reference/tcpwrap/constants.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/tcpwrap/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/tcpwrap/setup.xml +++ phpdoc/en/reference/tcpwrap/setup.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/yaz/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/yaz/book.xml +++ phpdoc/en/reference/yaz/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/yaz/constants.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/yaz/constants.xml +++ phpdoc/en/reference/yaz/constants.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/yaz/examples.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/yaz/examples.xml +++ phpdoc/en/reference/yaz/examples.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/yaz/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/yaz/setup.xml +++ phpdoc/en/reference/yaz/setup.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/nis/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/nis/book.xml +++ phpdoc/en/reference/nis/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/nis/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/nis/setup.xml +++ phpdoc/en/reference/nis/setup.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/snmp/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/snmp/book.xml +++ phpdoc/en/reference/snmp/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/snmp/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/snmp/setup.xml +++ phpdoc/en/reference/snmp/setup.xml
http://cvs.php.net/viewvc.cgi/phpdoc/manual.xml.in?r1=1.224.2.30&r2=1.224.2.31&diff_format=u Index: phpdoc/manual.xml.in diff -u phpdoc/manual.xml.in:1.224.2.30 phpdoc/manual.xml.in:1.224.2.31 --- phpdoc/manual.xml.in:1.224.2.30 Sat Dec 8 09:57:45 2007 +++ phpdoc/manual.xml.in Sat Dec 8 16:58:28 2007 @@ -2,7 +2,7 @@ <!DOCTYPE set PUBLIC "-//OASIS//DTD DocBook XML V5.0//EN" "@srcdir@/docbook/docbook-xml/docbook.dtd" [ -<!-- $Revision: 1.224.2.30 $ --> <!-- Last updated to comply to manual.xml.in 1.189 --> +<!-- $Revision: 1.224.2.31 $ --> <!-- Last updated to comply to manual.xml.in 1.189 --> <!-- We use xhtml entities all over the place --> <!ENTITY % xhtml-lat1 SYSTEM "@srcdir@/entities/ISO/xhtml1-lat1.ent"> <!ENTITY % xhtml-symbol SYSTEM "@srcdir@/entities/ISO/xhtml1-symbol.ent"> @@ -322,31 +322,31 @@ &reference.kadm5.reference; </book> - <book xml:id="refs.remote.other"> + <set xml:id="refs.remote.other"> <title>Other Services</title> - &reference.curl.reference; - &reference.fam.reference; - &reference.ftp.reference; - &reference.net-gopher.reference; - &reference.hw.reference; - &reference.http.reference; - &reference.hwapi.reference; - &reference.ircg.reference; - &reference.java.reference; - &reference.ldap.reference; - &reference.memcache.reference; - &reference.mnogosearch.reference; - &reference.network.reference; - &reference.notes.reference; - &reference.sam.reference; - &reference.sockets.reference; - &reference.ssh2.reference; - &reference.svn.reference; - &reference.tcpwrap.reference; - &reference.yaz.reference; - &reference.nis.reference; - &reference.snmp.reference; - </book> + &reference.curl.book; + &reference.fam.book; + &reference.ftp.book; + &reference.net-gopher.book; + &reference.hw.book; + &reference.hwapi.book; + &reference.http.book; + &reference.ircg.book; + &reference.java.book; + &reference.ldap.book; + &reference.memcache.book; + &reference.mnogosearch.book; + &reference.network.book; + &reference.notes.book; + &reference.sam.book; + &reference.sockets.book; + &reference.ssh2.book; + &reference.svn.book; + &reference.tcpwrap.book; + &reference.yaz.book; + &reference.nis.book; + &reference.snmp.book; + </set> <set xml:id="refs.compression"> <title>Compression Extensions</title> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/curl/constants.xml?r1=1.16.2.1&r2=1.16.2.2&diff_format=u Index: phpdoc/en/reference/curl/constants.xml diff -u phpdoc/en/reference/curl/constants.xml:1.16.2.1 phpdoc/en/reference/curl/constants.xml:1.16.2.2 --- phpdoc/en/reference/curl/constants.xml:1.16.2.1 Tue Oct 23 17:24:15 2007 +++ phpdoc/en/reference/curl/constants.xml Sat Dec 8 16:58:28 2007 @@ -1,12 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.16.2.1 $ --> -<refentry xml:id="curl.constants" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>Constants</refname> - <refpurpose>Curl Predefined Constants</refpurpose> - </refnamediv> - - <refsect1> +<!-- $Revision: 1.16.2.2 $ --> +<appendix xml:id="curl.constants" xmlns="http://docbook.org/ns/docbook"> &reftitle.constants; &extension.constants; <para> @@ -2995,8 +2989,7 @@ </listitem> </varlistentry> </variablelist> -</refsect1> -</refentry> +</appendix> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/curl/reference.xml?r1=1.18.2.1&r2=1.18.2.2&diff_format=u Index: phpdoc/en/reference/curl/reference.xml diff -u phpdoc/en/reference/curl/reference.xml:1.18.2.1 phpdoc/en/reference/curl/reference.xml:1.18.2.2 --- phpdoc/en/reference/curl/reference.xml:1.18.2.1 Wed Oct 3 11:41:09 2007 +++ phpdoc/en/reference/curl/reference.xml Sat Dec 8 16:58:28 2007 @@ -1,97 +1,8 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.18.2.1 $ --> -<!-- Purpose: remote.other --> -<!-- Membership: bundled, external --> +<!-- $Revision: 1.18.2.2 $ --> <reference xml:id="ref.curl" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <title>CURL, Client URL Library Functions</title> - <titleabbrev>CURL</titleabbrev> - - <partintro> - <section xml:id="curl.intro"> - &reftitle.intro; - <para> - PHP supports libcurl, a library created by Daniel Stenberg, that - allows you to connect and communicate to many different types of - servers with many different types of protocols. libcurl currently - supports the http, https, ftp, gopher, telnet, dict, file, and - ldap protocols. libcurl also supports HTTPS certificates, HTTP - POST, HTTP PUT, FTP uploading (this can also be done with PHP's - ftp extension), HTTP form based upload, proxies, cookies, and - user+password authentication. - </para> - <para> - These functions have been added in PHP 4.0.2. - </para> - </section> - - <section xml:id="curl.requirements"> - &reftitle.required; - <para> - In order to use PHP's cURL functions you need to install the <link - xlink:href="&url.curl;">libcurl</link> package. PHP requires that you use - libcurl 7.0.2-beta or higher. In PHP 4.2.3, you will need - libcurl version 7.9.0 or higher. From PHP 4.3.0, you will need a libcurl - version that's 7.9.8 or higher. PHP 5.0.0 requires - a libcurl version 7.10.5 or greater. - </para> - </section> - - &reference.curl.configure; - - <section xml:id="curl.resources"> - &reftitle.resources; - <para> - This extension defines two resource types: a cURL handle and a cURL multi - handle. - </para> - </section> - - <section> - &reftitle.constants; - <para> - See also the cURL <link linkend="curl.constants">Predefined Constants</link> - </para> - </section> - - <section xml:id="curl.examples"> - &reftitle.examples; - <para> - Once you've compiled PHP with cURL support, you can begin using - the cURL functions. The basic idea behind the cURL functions is - that you initialize a cURL session using the - <function>curl_init</function>, then you can set all your - options for the transfer via the <function>curl_setopt</function>, - then you can execute the session with the - <function>curl_exec</function> and then you finish off - your session using the <function>curl_close</function>. - Here is an example that uses the cURL functions to fetch the - example.com homepage into a file: - <example> - <title>Using PHP's cURL module to fetch the example.com homepage</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$ch = curl_init("http://www.example.com/"); -$fp = fopen("example_homepage.txt", "w"); - -curl_setopt($ch, CURLOPT_FILE, $fp); -curl_setopt($ch, CURLOPT_HEADER, 0); - -curl_exec($ch); -curl_close($ch); -fclose($fp); -?> -]]> - </programlisting> - </example> - </para> - </section> - - </partintro> - - &reference.curl.constants; + <title>CURL, Client URL Library &Functions;</title> &reference.curl.functions.entities; http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/fam/constants.xml?r1=1.3&r2=1.3.2.1&diff_format=u Index: phpdoc/en/reference/fam/constants.xml diff -u phpdoc/en/reference/fam/constants.xml:1.3 phpdoc/en/reference/fam/constants.xml:1.3.2.1 --- phpdoc/en/reference/fam/constants.xml:1.3 Wed Jun 20 22:24:26 2007 +++ phpdoc/en/reference/fam/constants.xml Sat Dec 8 16:58:28 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<section xml:id="fam.constants" xmlns="http://docbook.org/ns/docbook"> +<!-- $Revision: 1.3.2.1 $ --> +<appendix xml:id="fam.constants" xmlns="http://docbook.org/ns/docbook"> &reftitle.constants; &extension.constants; <table> @@ -79,7 +79,7 @@ </tbody> </tgroup> </table> - </section> + </appendix> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/fam/reference.xml?r1=1.10.2.1&r2=1.10.2.2&diff_format=u Index: phpdoc/en/reference/fam/reference.xml diff -u phpdoc/en/reference/fam/reference.xml:1.10.2.1 phpdoc/en/reference/fam/reference.xml:1.10.2.2 --- phpdoc/en/reference/fam/reference.xml:1.10.2.1 Wed Oct 3 11:41:10 2007 +++ phpdoc/en/reference/fam/reference.xml Sat Dec 8 16:58:28 2007 @@ -1,67 +1,10 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.10.2.1 $ --> -<!-- Purpose: fileprocess.file --> -<!-- Membership: pecl, external --> +<!-- $Revision: 1.10.2.2 $ --> <reference xml:id="ref.fam" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <title>File Alteration Monitor Functions</title> + <title>File Alteration Monitor &Functions;</title> <titleabbrev>fam</titleabbrev> - <partintro> - <section xml:id="fam.intro"> - &reftitle.intro; - <para> - FAM monitors files and directories, notifying interested applications of - changes. More information about FAM is available at - <link xlink:href="&url.fam;">&url.fam;</link>. - </para> - <para> - A PHP script may specify a list of files for FAM to monitor - using the functions provided by this extension. - </para> - <para> - The FAM process is started when the first connection - from any application to it is opened. It exits after all - connections to it have been closed. - </para> - <note> - <para> - &pecl.moved-ver;5.1.0. - </para> - </note> - ¬e.no-windows.extension; - </section> - - <section xml:id="fam.requirements"> - &reftitle.required; - <para> - This extension uses the functions of the <link xlink:href="&url.fam.download;"> - FAM</link> library, developed by SGI. Therefore you have to download and - install the FAM library. - </para> - </section> - - &reference.fam.configure; - - <section xml:id="fam.configuration"> - &reftitle.runtime; - &no.config; - </section> - - <section xml:id="fam.resources"> - &reftitle.resources; - <para> - There are two resource types used in the FAM module. The first one is - the connection to the FAM service returned by - <function>fam_open</function>, the second a monitoring resource returned - by the <literal>fam_monitor_XXX</literal> functions. - </para> - </section> - - &reference.fam.constants; - - </partintro> - &reference.fam.functions.entities; </reference> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ftp/constants.xml?r1=1.6&r2=1.6.2.1&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.6.2.1 --- phpdoc/en/reference/ftp/constants.xml:1.6 Wed Jun 20 22:24:28 2007 +++ phpdoc/en/reference/ftp/constants.xml Sat Dec 8 16:58:28 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.6.2.1 $ --> +<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.13.2.1&r2=1.13.2.2&diff_format=u Index: phpdoc/en/reference/ftp/reference.xml diff -u phpdoc/en/reference/ftp/reference.xml:1.13.2.1 phpdoc/en/reference/ftp/reference.xml:1.13.2.2 --- phpdoc/en/reference/ftp/reference.xml:1.13.2.1 Wed Oct 3 11:41:10 2007 +++ phpdoc/en/reference/ftp/reference.xml Sat Dec 8 16:58:28 2007 @@ -1,93 +1,8 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.13.2.1 $ --> -<!-- Purpose: remote.other --> -<!-- Membership: bundled --> +<!-- $Revision: 1.13.2.2 $ --> <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.functions.entities; @@ -113,3 +28,4 @@ vim: et tw=78 syn=xml vi: ts=1 sw=1 --> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/net_gopher/constants.xml?r1=1.2&r2=1.2.2.1&diff_format=u Index: phpdoc/en/reference/net_gopher/constants.xml diff -u phpdoc/en/reference/net_gopher/constants.xml:1.2 phpdoc/en/reference/net_gopher/constants.xml:1.2.2.1 --- phpdoc/en/reference/net_gopher/constants.xml:1.2 Wed Jun 20 22:25:03 2007 +++ phpdoc/en/reference/net_gopher/constants.xml Sat Dec 8 16:58:28 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<section xml:id="net-gopher.constants" xmlns="http://docbook.org/ns/docbook"> +<!-- $Revision: 1.2.2.1 $ --> +<appendix xml:id="net-gopher.constants" xmlns="http://docbook.org/ns/docbook"> &reftitle.constants; &extension.constants; <table> @@ -64,7 +64,7 @@ </tbody> </tgroup> </table> - </section> + </appendix> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/net_gopher/reference.xml?r1=1.4.2.1&r2=1.4.2.2&diff_format=u Index: phpdoc/en/reference/net_gopher/reference.xml diff -u phpdoc/en/reference/net_gopher/reference.xml:1.4.2.1 phpdoc/en/reference/net_gopher/reference.xml:1.4.2.2 --- phpdoc/en/reference/net_gopher/reference.xml:1.4.2.1 Wed Oct 3 11:41:12 2007 +++ phpdoc/en/reference/net_gopher/reference.xml Sat Dec 8 16:58:28 2007 @@ -1,60 +1,10 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4.2.1 $ --> -<!-- Purpose: remote.other --> -<!-- Membership: pecl --> +<!-- $Revision: 1.4.2.2 $ --> <reference xml:id="ref.net-gopher" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>Net_Gopher</title> <titleabbrev>gopher</titleabbrev> - <partintro> - <section xml:id="net-gopher.intro"> - &reftitle.intro; - <simpara> - The gopher protocol, as defined by <link xlink:href="&url.rfc;1436">RFC 1436</link>, - is generally considered the ancestor of the modern HTTP protocol. - However, gopher was also intended to provide references to non-gopher - resources including telnet, wais, nntp, and even http. This extension - adds gopher support to PHP's <link linkend="wrappers">URL Wrappers</link>, - and provides a helper function <function>gopher_parsedir</function> to - make sense of gopher formatted directory listings. - </simpara> - </section> - - <section xml:id="net-gopher.requirements"> - &reftitle.required; - <para> - </para> - </section> - - &reference.net-gopher.configure; - - <section xml:id="net-gopher.configuration"> - &reftitle.runtime; - &no.config; - </section> - - <section xml:id="net-gopher.resources"> - &reftitle.resources; - &no.resource; - </section> - - &reference.net-gopher.constants; - - <section xml:id="net-gopher.examples"> - &reftitle.examples; - <informalexample> - <programlisting role="php"> -<![CDATA[ -<?php -readfile("gopher://gopher.example.com/somedocument"); -?> -]]> - </programlisting> - </informalexample> - </section> - </partintro> - &reference.net-gopher.functions.entities; </reference> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/hw/constants.xml?r1=1.4&r2=1.4.2.1&diff_format=u Index: phpdoc/en/reference/hw/constants.xml diff -u phpdoc/en/reference/hw/constants.xml:1.4 phpdoc/en/reference/hw/constants.xml:1.4.2.1 --- phpdoc/en/reference/hw/constants.xml:1.4 Wed Jun 20 22:24:35 2007 +++ phpdoc/en/reference/hw/constants.xml Sat Dec 8 16:58:29 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<section xml:id="hw.constants" xmlns="http://docbook.org/ns/docbook"> +<!-- $Revision: 1.4.2.1 $ --> +<appendix xml:id="hw.constants" xmlns="http://docbook.org/ns/docbook"> &reftitle.constants; &extension.constants; <variablelist> @@ -38,7 +38,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/hw/reference.xml?r1=1.12.2.1&r2=1.12.2.2&diff_format=u Index: phpdoc/en/reference/hw/reference.xml diff -u phpdoc/en/reference/hw/reference.xml:1.12.2.1 phpdoc/en/reference/hw/reference.xml:1.12.2.2 --- phpdoc/en/reference/hw/reference.xml:1.12.2.1 Wed Oct 3 11:41:10 2007 +++ phpdoc/en/reference/hw/reference.xml Sat Dec 8 16:58:29 2007 @@ -1,391 +1,11 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.12.2.1 $ --> -<!-- Purpose: remote.other --> -<!-- Membership: pecl, external --> +<!-- $Revision: 1.12.2.2 $ --> <reference xml:id="ref.hw" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <title>Hyperwave Functions</title> - <titleabbrev>Hyperwave</titleabbrev> + <title>Hyperwave &Functions;</title> <partintro> - <section xml:id="hw.intro"> - &reftitle.intro; - <para> - <productname>Hyperwave</productname> has been developed at - <link xlink:href="&url.iicm;">IICM</link> in Graz. It started with - the name <acronym>Hyper-G</acronym> and changed to Hyperwave when - it was commercialised (in 1996). - </para> - <para> - Hyperwave is not free software. The current version, 5.5 is - available at <link xlink:href="&url.hyperwave;">&url.hyperwave;</link>. - A time limited version can be ordered for free (30 days). - </para> - <para> - See also the <link linkend="ref.hwapi">Hyperwave API</link> module. - </para> - <para> - Hyperwave is an information system similar to a database - (<acronym>HIS</acronym>, Hyperwave Information Server). Its focus - is the storage and management of documents. A document can be any - possible piece of data that may as well be stored in file. Each - document is accompanied by its object record. The object record - contains meta data for the document. The meta data is a list of - attributes which can be extended by the user. Certain attributes - are always set by the Hyperwave server, other may be modified by - the user. An attribute is a name/value pair of the form name=value. - The complete object record contains as many of those pairs as the - user likes. The name of an attribute does not have to be unique, - e.g. a title may appear several times within an object record. - This makes sense if you want to specify a title in several languages. - In such a case there is a convention, that each title value is - preceded by the two letter language abbreviation followed by a colon, - e.g. <literal>'en:Title in English'</literal> or <literal>'ge:Titel - in deutsch'</literal>. Other attributes like a description or keywords - are potential candidates. You may also replace the language - abbreviation by any other string as long as it separated by colon - from the rest of the attribute value. - </para> - <para> - Each object record has native a string representation with each - name/value pair separated by a newline. The Hyperwave extension - also knows a second representation which is an associated array with - the attribute name being the key. Multilingual attribute values itself - form another associated array with the key being the language - abbreviation. Actually any multiple attribute forms an associated - array with the string left to the colon in the attribute value - being the key. (This is not fully implemented. Only the attributes - Title, Description and Keyword are treated properly yet.) - </para> - <para> - Besides the documents, all hyper links contained in a document - are stored as object records as well. Hyper links which - are in a document will be removed from it and stored as individual - objects, when the document is inserted into the database. - The object record of the link contains information - about where it starts and where it ends. - In order to gain the original document you will have - to retrieve the plain document without the links and the list - of links and reinsert them. The functions - <function>hw_pipedocument</function> and <function>hw_gettext</function> - do this for you. The advantage of separating links - from the document is obvious. Once a document to which a link - is pointing to changes its name, the link can easily be modified - accordingly. The document containing the link is not affected - at all. You may even add a link to a document without modifying - the document itself. - </para> - <para> - Saying that <function>hw_pipedocument</function> and - <function>hw_gettext</function> do the link insertion automatically - is not as simple as it sounds. Inserting links implies a certain - hierarchy of the documents. On a web server this is given by the - file system, but Hyperwave has its own hierarchy and names do not - reflect the position of an object in that hierarchy. Therefore - creation of links first of all requires a mapping from the Hyperwave - hierarchy and namespace into a web hierarchy respective web namespace. - The fundamental difference between Hyperwave and the web is the clear - distinction between names and hierarchy in Hyperwave. The name does - not contain any information about the objects position in the hierarchy. - In the web the name also contains the information on where the object - is located in the hierarchy. This leads to two possibles ways of mapping. - Either the Hyperwave hierarchy and name of the Hyperwave object is - reflected in the URL or the name only. To make things simple the second - approach is used. Hyperwave object with name <literal>my_object</literal> - is mapped to <literal>http://host/my_object</literal> disregarding where - it resides in the Hyperwave hierarchy. An object with name - <literal>parent/my_object</literal> could be the child of - <literal>my_object</literal> in the Hyperwave hierarchy, though in a web - namespace it appears to be just the opposite and the user might get - confused. This can only be prevented by selecting reasonable object names. - </para> - <para> - Having made this decision a second problem arises. How do you - involve PHP? The URL <literal>http://host/my_object</literal> will - not call any PHP script unless you tell your web server to rewrite it to - e.g. <literal>http://host/php_script/my_object</literal> and the script - <literal>php_script</literal> evaluates the <varname>$PATH_INFO</varname> - variable and retrieves the object with name <literal>my_object</literal> - from the Hyperwave server. Their is just one little - drawback which can be fixed easily. Rewriting any URL would not allow - any access to other document on the web server. A PHP script for - searching in the Hyperwave server would be impossible. Therefore - you will need at least a second rewriting rule to exclude certain - URLs like all e.g. starting with <literal>http://host/Hyperwave</literal> - This is basically sharing of a namespace by the web and Hyperwave server. - </para> - <para> - Based on the above mechanism links are insert into documents. - </para> - <para> - It gets more complicated if PHP is not run as a server module or CGI - script but as a standalone application e.g. to dump the content of - the Hyperwave server on a CD-ROM. In such a case it makes sense to - retain the Hyperwave hierarchy and map in onto the file system. This - conflicts with the object names if they reflect its own hierarchy - (e.g. by choosing names including '/'). Therefore '/' has to be - replaced by another character, e.g. '_'. - </para> - <para> - The network protocol to communicate with the Hyperwave server is called - <link xlink:href="&spec.hyperwave;">HG-CSP</link> (Hyper-G Client/Server - Protocol). It is based on messages to initiate certain actions, e.g. get - object record. In early versions of the Hyperwave Server two native - clients (Harmony, Amadeus) were provided for communication with the - server. Those two disappeared when Hyperwave was commercialised. As a - replacement a so called wavemaster was provided. The wavemaster is like a - protocol converter from <abbrev>HTTP</abbrev> to <abbrev>HG-CSP</abbrev>. - The idea is to do all the administration of the database and - visualisation of documents by a web interface. The wavemaster implements - a set of placeholders for certain actions to customise the interface. - This set of placeholders is called the <abbrev>PLACE</abbrev> Language. - <abbrev>PLACE</abbrev> lacks a lot of features of a real programming - language and any extension to it only enlarges the list of placeholders. - This has led to the use of JavaScript which IMO does not make life - easier. - </para> - <para> - Adding Hyperwave support to PHP should fill in the gap of a - missing programming language for interface customisation. It - implements all the messages as defined by the <abbrev>HG-CSP</abbrev> - but also provides more powerful commands to e.g. retrieve complete - documents. - </para> - <para> - Hyperwave has its own terminology to name certain pieces of - information. This has widely been taken over and extended. - Almost all functions operate on one of the following data types. - - <itemizedlist> - <listitem> - <simpara> - object ID: A unique integer value for each object in the - Hyperwave server. It is also one of the attributes of the - object record (ObjectID). Object ids are often used as an - input parameter to specify an object. - </simpara> - </listitem> - <listitem> - <simpara> - object record: A string with attribute-value pairs of the form - attribute=value. The pairs are separated by a carriage return - from each other. An object record can easily be converted into - an object array with <function>hw_object2array</function>. - Several functions return object records. The names of those - functions end with obj. - </simpara> - </listitem> - <listitem> - <simpara> - object array: An associative array with all attributes of an - object. The keys are the attribute names. If an attribute occurs - more than once in an object record it will result in another - indexed or associative array. Attributes which are language - depended (like the title, keyword, description) will form an - associative array with the keys set to the language - abbreviations. All other multiple attributes will form an - indexed array. PHP functions never return object arrays. - </simpara> - </listitem> - <listitem> - <simpara> - hw_document: This is a complete new data type which holds the - actual document, e.g. HTML, PDF etc. It is somewhat optimized - for HTML documents but may be used for any format. - </simpara> - </listitem> - </itemizedlist> - </para> - <para> - Several functions which return an array of object records do also - return an associative array with statistical information about - them. The array is the last element of the object record - array. The statistical array contains the following entries: - <variablelist> - <varlistentry> - <term>Hidden</term> - <listitem> - <simpara> - Number of object records with attribute PresentationHints - set to Hidden. - </simpara> - </listitem> - </varlistentry> - <varlistentry> - <term>CollectionHead</term> - <listitem> - <simpara> - Number of object records with attribute - PresentationHints set to CollectionHead. - </simpara> - </listitem> - </varlistentry> - <varlistentry> - <term>FullCollectionHead</term> - <listitem> - <simpara> - Number of object records with attribute - PresentationHints set to FullCollectionHead. - </simpara> - </listitem> - </varlistentry> - <varlistentry> - <term>CollectionHeadNr</term> - <listitem> - <simpara> - Index in array of object records with - attribute PresentationHints set to CollectionHead. - </simpara> - </listitem> - </varlistentry> - <varlistentry> - <term>FullCollectionHeadNr</term> - <listitem> - <simpara> - Index in array of object records with - attribute PresentationHints set to FullCollectionHead. - </simpara> - </listitem> - </varlistentry> - <varlistentry> - <term>Total</term> - <listitem> - <simpara> - Total: Number of object records. - </simpara> - </listitem> - </varlistentry> - </variablelist> - </para> - </section> - - <section xml:id="hw.requirements"> - &reftitle.required; - <para> - This extension needs a Hyperwave server downloadable - from <link xlink:href="&url.hyperwave;">&url.hyperwave;</link>. - </para> - </section> - - &reference.hw.configure; - - <section xml:id="hw.apache"> - <title>Integration with Apache</title> - <para> - The Hyperwave extension is best used when PHP is compiled as an - Apache module. In such a case the underlying Hyperwave server can - be hidden from users almost completely if Apache uses its rewriting - engine. The following instructions will explain this. - </para> - <para> - Since PHP with Hyperwave support built into Apache is intended - to replace the native Hyperwave solution based on Wavemaster, we - will assume that the Apache server will only serve as a Hyperwave - web interface for these examples. This is not necessary but it simplifies - the configuration. The concept is quite simple. First of all you - need a PHP script which evaluates the <varname>$_ENV['PATH_INFO']</varname> - variable and treats its value as the name of a Hyperwave - object. Let's call this script <literal>'Hyperwave'</literal>. The URL - <literal>http://your.hostname/Hyperwave/name_of_object</literal> - would than return the Hyperwave object with the name - <literal>'name_of_object'</literal>. Depending on the type of the object - the script has to react accordingly. If it is a collection, it will probably - return a list of children. If it is a document it will return the - mime type and the content. A slight improvement can be achieved - if the Apache rewriting engine is used. From the users point of - view it would be more straight forward if the URL - <literal>http://your.hostname/name_of_object</literal> would - return the object. The rewriting rule is quite easy: - - <informalexample> - <programlisting role="apache-conf"> -<![CDATA[ -RewriteRule ^/(.*) /usr/local/apache/htdocs/HyperWave/$1 [L] -]]> - </programlisting> - </informalexample> - - Now every URL relates to an object in the Hyperwave server. This - causes a simple to solve problem. There is no way to execute a - different script, e.g. for searching, than the 'Hyperwave' - script. This can be fixed with another rewriting rule like the - following: - - <informalexample> - <programlisting role="apache-conf"> -<![CDATA[ -RewriteRule ^/hw/(.*) /usr/local/apache/htdocs/hw/$1 [L] -]]> - </programlisting> - </informalexample> - - This will reserve the directory <filename>/usr/local/apache/htdocs/hw</filename> - for additional scripts and other files. Just make sure this rule is - evaluated before the one above. There is just a little drawback: - all Hyperwave objects whose name starts with <literal>'hw/'</literal> - will be shadowed. So, make sure you don't use such names. If you need - more directories, e.g. for images just add more rules or place - them all in one directory. Before you put those instructions, don't - forget to turn on the rewriting engine with - - <informalexample> - <programlisting role="apache-conf"> -<![CDATA[ -RewriteEngine on -]]> - </programlisting> - </informalexample> - - You will need scripts: - - <itemizedlist> - <listitem> - <simpara> - to return the object itself - </simpara> - </listitem> - <listitem> - <simpara> - to allow searching - </simpara> - </listitem> - <listitem> - <simpara> - to identify yourself - </simpara> - </listitem> - <listitem> - <simpara> - to set your profile - </simpara> - </listitem> - <listitem> - <simpara> - one for each additional function like to show - the object attributes, to show information about users, - to show the status of the server, etc. - </simpara> - </listitem> - </itemizedlist> - </para> - <para> - As an alternative to the Rewrite Engine, you can also consider using - the Apache <literal>ErrorDocument</literal> directive, but be aware, - that <literal>ErrorDocument</literal> redirected pages cannot receive - POST data. - </para> - </section> - - &reference.hw.ini; - - <section xml:id="hw.resources"> - &reftitle.resources; - &no.resource; - </section> - - &reference.hw.constants; - <section xml:id="hw.todo"> <title>Todo</title> <para> @@ -425,6 +45,7 @@ &reference.hw.functions.entities; </reference> + <!-- Keep this comment at the end of the file Local variables: mode: sgml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/hwapi/reference.xml?r1=1.17.2.1&r2=1.17.2.2&diff_format=u Index: phpdoc/en/reference/hwapi/reference.xml diff -u phpdoc/en/reference/hwapi/reference.xml:1.17.2.1 phpdoc/en/reference/hwapi/reference.xml:1.17.2.2 --- phpdoc/en/reference/hwapi/reference.xml:1.17.2.1 Wed Oct 3 11:41:10 2007 +++ phpdoc/en/reference/hwapi/reference.xml Sat Dec 8 16:58:29 2007 @@ -1,60 +1,10 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.17.2.1 $ --> -<!-- Purpose: remote.other --> -<!-- Membership: pecl, external --> +<!-- $Revision: 1.17.2.2 $ --> <reference xml:id="ref.hwapi" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <title>Hyperwave API Functions</title> - <titleabbrev>Hyperwave API</titleabbrev> + <title>Hyperwave API &Functions;</title> <partintro> - - <section xml:id="hwapi.intro"> - &reftitle.intro; - <para> - <productname>Hyperwave</productname> has been developed at - <link xlink:href="&url.iicm;">IICM</link> in Graz. It started with - the name <acronym>Hyper-G</acronym> and changed to Hyperwave when - it was commercialised (in 1996). - </para> - <para> - Hyperwave is not free software. The current version, 5.5, is - available at <link xlink:href="&url.hyperwave;">&url.hyperwave;</link>. - A time limited version can be ordered for free (30 days). - </para> - <para> - See also the <link linkend="ref.hw">Hyperwave</link> module. - </para> - <para> - Hyperwave is an information system similar to a database - (<acronym>HIS</acronym>, Hyperwave Information Server). Its focus - is the storage and management of documents. A document can be any - possible piece of data that may as well be stored in file. Each - document is accompanied by its object record. The object record - contains meta data for the document. The meta data is a list of - attributes which can be extended by the user. Certain attributes - are always set by the Hyperwave server, other may be modified by - the user. - </para> - <note> - <para> - &pecl.moved-ver;5.2.0. - </para> - </note> - </section> - - <section xml:id="hwapi.requirements"> - &reftitle.required; - <para> - Since 2001 there is a Hyperwave SDK available. It supports Java, - JavaScript and C++. This PHP Extension is based on the C++ interface. - In order to activate the hwapi support in PHP you will have to install - the Hyperwave SDK first. - </para> - </section> - - &reference.hwapi.configure; - <section xml:id="hwapi.apache"> <title>Integration with Apache</title> <para> @@ -64,18 +14,7 @@ </para> </section> - &reference.hwapi.ini; - - <section xml:id="hwapi.resources"> - &reftitle.resources; - &no.resource; - </section> - - <section xml:id="hwapi.constants"> - &reftitle.constants; - &no.constants; - </section> - + <!-- FIXME: This extension apparently defines a class.. --> <section xml:id="hwapi.classes"> <title>Classes</title> <para> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/http/install.xml?r1=1.6.2.2&r2=1.6.2.3&diff_format=u Index: phpdoc/en/reference/http/install.xml diff -u phpdoc/en/reference/http/install.xml:1.6.2.2 phpdoc/en/reference/http/install.xml:1.6.2.3 --- phpdoc/en/reference/http/install.xml:1.6.2.2 Sat Oct 27 12:26:57 2007 +++ phpdoc/en/reference/http/install.xml Sat Dec 8 16:58:29 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6.2.2 $ --> -<chapter xml:id="http.install" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> +<!-- $Revision: 1.6.2.3 $ --> +<section xml:id="http.install" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>Installation/Configuration</title> <titleabbrev>Installing the HTTP extension</titleabbrev> @@ -20,41 +20,7 @@ &pecl.windows.download; </para> </section> - - <section xml:id="http.requirements.windows"> - <title>Installation requirements on Windows</title> - <para> - In order to be able to load this extension on <emphasis>Windows</emphasis>, - you additionally need to load the following PHP extensions: - <link linkend="ref.hash">hash</link>, <link linkend="ref.iconv">iconv</link> - &listendand; <link linkend="ref.spl">SPL</link>. - </para> - </section> - - <section xml:id="http.requirements"> - <title>Installation requirements on other platforms</title> - <para> - The extension must be built with <link xlink:href="&url.curl.lib;">libcurl</link> support - to enable <emphasis>request</emphasis> functionality (<literal>--with-http-curl-requests</literal>). - A library version equal or greater to <emphasis>v7.12.3</emphasis> is required. - </para> - <para> - To enable support for sending and receiving <emphasis>compressed</emphasis> - responses, the extension must be built with <link xlink:href="&url.zlib;">zlib</link> support - (<literal>--with-http-zlib-compression</literal>). - A library version equal or greater than <emphasis>v1.2.2</emphasis> is required. - </para> - <para> - <emphasis>Content type quessing</emphasis> can be enabled by - building this extension with <link xlink:href="&url.libmagic;">libmagic</link> support - (<literal>--with-http-magic-mime</literal>). - </para> - </section> - - &reference.http.configuration; - &reference.http.resources; - -</chapter> +</section> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/http/reference.xml?r1=1.24.2.3&r2=1.24.2.4&diff_format=u Index: phpdoc/en/reference/http/reference.xml diff -u phpdoc/en/reference/http/reference.xml:1.24.2.3 phpdoc/en/reference/http/reference.xml:1.24.2.4 --- phpdoc/en/reference/http/reference.xml:1.24.2.3 Sat Oct 27 12:26:57 2007 +++ phpdoc/en/reference/http/reference.xml Sat Dec 8 16:58:29 2007 @@ -1,71 +1,21 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.24.2.3 $ --> -<!-- Purpose: basic.php --> -<!-- Membership: pecl --> - -<part xmlns="http://docbook.org/ns/docbook" version="5.0" xml:id="ref.http" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude"> - <title>HTTP</title> - <titleabbrev>http</titleabbrev> +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.24.2.4 $ --> +<reference xml:id="ref.http"> + <title>HTTP functions</title> <partintro> - <!-- {{{ HTTP intro --> - <section xml:id="http.intro"> - &reftitle.intro; - <simpara> - This HTTP extension aims to provide a convenient and powerful - set of functionality for one of PHPs major applications. - </simpara> - <simpara> - It eases handling of HTTP URLs, dates, redirects, headers and - messages, provides means for negotiation of clients preferred - language and charset, as well as a convenient way to send any - arbitrary data with caching and resuming capabilities. - </simpara> - <simpara> - It provides powerful request functionality, if built with CURL - support. Parallel requests are available for PHP 5 and greater. - </simpara> - <simpara> - Additionally to the API reference in this manual you can find - information about how to install and configure as well as - which global constants are predefined in the following sections: - </simpara> - </section> - - <section xml:id="http.classlisting"> - <title>Classes</title> - &extension.classes; - <simpara> - The <classname>HttpResponse</classname> class requires at least PHP v5.1. - Any other class is available as of PHP v5.0. - </simpara> - <note> - <simpara> - Be aware though, that some methods are not available with PHP v5.0. - </simpara> - </note> - </section> - <!-- }}} --> - </partintro> + <simpara> + Built-in HTTP related functions previously listed on this page can be found in the + <link linkend="ref.network">networking</link> category. + </simpara> + <simpara> + The following functions do not need the HTTP module to be present: + <function>header</function>, <function>headers_list</function>, <function>headers_sent</function>, + <function>setcookie</function> &listendand; <function>setrawcookie</function>. + </simpara> - - <!-- - <reference xml:id="classes.http"> - - <section xml:id="functions.http"> - <title>Functions</title> - <section> - <title>Built-in Functions</title> - <simpara> - Built-in HTTP related functions previously listed on this page can be found in the - <link linkend="ref.network">networking</link> category. - </simpara> - <simpara> - The following functions do not need the HTTP module to be present: - <function>header</function>, <function>headers_list</function>, <function>headers_sent</function>, - <function>setcookie</function> &listendand; <function>setrawcookie</function>. - </simpara> - </section> + <section xml:id="http.functions"> + <title>Function groups</title> <section> <title>Caching</title> <simplelist> @@ -168,38 +118,12 @@ </simplelist> </section> </section> - --> - &reference.http.install; - &reference.http.constants; - &reference.http.request-options; - - &reference.http.HttpDeflateStream; - &reference.http.HttpInflateStream; - &reference.http.HttpMessage; - &reference.http.HttpQueryString; - &reference.http.HttpRequest; - &reference.http.HttpRequestPool; - &reference.http.HttpResponse; - - - <reference xml:id="http.procedural"> - <title>HTTP functions</title> - <partintro> - <simpara> - Built-in HTTP related functions previously listed on this page can be found in the - <link linkend="ref.network">networking</link> category. - </simpara> - <simpara> - The following functions do not need the HTTP module to be present: - <function>header</function>, <function>headers_list</function>, <function>headers_sent</function>, - <function>setcookie</function> &listendand; <function>setrawcookie</function>. - </simpara> - </partintro> - &reference.http.functions.entities; - </reference> + </partintro> + + &reference.http.functions.entities; -</part> +</reference> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/http/request-options.xml?r1=1.3.2.1&r2=1.3.2.2&diff_format=u Index: phpdoc/en/reference/http/request-options.xml diff -u phpdoc/en/reference/http/request-options.xml:1.3.2.1 phpdoc/en/reference/http/request-options.xml:1.3.2.2 --- phpdoc/en/reference/http/request-options.xml:1.3.2.1 Sat Oct 27 12:26:57 2007 +++ phpdoc/en/reference/http/request-options.xml Sat Dec 8 16:58:29 2007 @@ -1,8 +1,8 @@ -<?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.3.2.1 $ --> +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.3.2.2 $ --> <appendix xml:id="http.request.options" xmlns="http://docbook.org/ns/docbook"> - <title>Request Options</title> - <titleabbrev>Options usable with the HttpRequest class and request functions</titleabbrev> + <title>Options usable with the HttpRequest class and request functions</title> + <titleabbrev>Request Options</titleabbrev> <variablelist xml:id="http.request.options.timeouts"> <title>Options related to time outs</title> <varlistentry xml:id="http.request.option.timeout"> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ircg/reference.xml?r1=1.9.2.1&r2=1.9.2.2&diff_format=u Index: phpdoc/en/reference/ircg/reference.xml diff -u phpdoc/en/reference/ircg/reference.xml:1.9.2.1 phpdoc/en/reference/ircg/reference.xml:1.9.2.2 --- phpdoc/en/reference/ircg/reference.xml:1.9.2.1 Wed Oct 3 11:41:11 2007 +++ phpdoc/en/reference/ircg/reference.xml Sat Dec 8 16:58:29 2007 @@ -1,65 +1,8 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.9.2.1 $ --> -<!-- Purpose: remote.other --> -<!-- Membership: pecl, external --> +<!-- $Revision: 1.9.2.2 $ --> <reference xml:id="ref.ircg" xmlns="http://docbook.org/ns/docbook"> - <title>IRC Gateway Functions</title> - <titleabbrev>IRC Gateway</titleabbrev> - <partintro> - - <section xml:id="ircg.intro"> - &reftitle.intro; - <para> - With IRCG you can rapidly stream XML data to thousands of concurrently - connected users. This can be used to build powerful, extensible - interactive platforms such as online games and webchats. - IRCG also features support for a non-streaming mode where a helper - application reformats incoming data and supplies static file snippets in - special formats such as cHTML (i-mode) or WML (WAP). These static files - are then delivered by the high-performance web server. - </para> - <para> - Up to v4, IRCG runs under these platforms: - <itemizedlist> - <listitem><para>AIX</para></listitem> - <listitem><para>FreeBSD</para></listitem> - <listitem><para>HP-UX</para></listitem> - <listitem><para>Irix</para></listitem> - <listitem><para>Linux</para></listitem> - <listitem><para>Solaris</para></listitem> - <listitem><para>Tru64</para></listitem> - <listitem><para>Windows</para></listitem> - </itemizedlist> - </para> - <note> - <para> - &pecl.moved-ver;5.1.0. - </para> - </note> - </section> - - &reference.ircg.configure; - - <section xml:id="ircg.configuration"> - &reftitle.runtime; - &no.config; - </section> - - <section xml:id="ircg.resources"> - &reftitle.resources; - <para> - - - </para> - </section> - - <section xml:id="ircg.constants"> - &reftitle.constants; - &no.constants; - </section> - - </partintro> + <title>IRC Gateway &Functions;</title> &reference.ircg.functions.entities; http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/java/reference.xml?r1=1.14.2.1&r2=1.14.2.2&diff_format=u Index: phpdoc/en/reference/java/reference.xml diff -u phpdoc/en/reference/java/reference.xml:1.14.2.1 phpdoc/en/reference/java/reference.xml:1.14.2.2 --- phpdoc/en/reference/java/reference.xml:1.14.2.1 Wed Oct 3 11:41:11 2007 +++ phpdoc/en/reference/java/reference.xml Sat Dec 8 16:58:29 2007 @@ -1,214 +1,12 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.14.2.1 $ --> -<!-- Purpose: remote.other --> -<!-- Membership: pecl, external --> -<!-- State: experimental --> +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.14.2.2 $ --> - <reference xml:id="ref.java" xmlns="http://docbook.org/ns/docbook"> - <title>PHP / Java Integration</title> - <titleabbrev>Java</titleabbrev> - <partintro> - - <section xml:id="java.intro"> - &reftitle.intro; - <para> - There are two possible ways to bridge PHP and Java: you can either - <link linkend="java.servlet">integrate PHP into a Java Servlet - environment</link>, which is the more stable and efficient solution, - or integrate Java support into PHP. The former is provided by a SAPI - module that interfaces with the Servlet server, the latter by this - Java extension. - </para> - <para> - The Java extension provides a simple and effective means for creating and - invoking methods on Java objects from PHP. The JVM is created using JNI, - and everything runs in-process. - </para> - &warn.experimental; - </section> - - <section xml:id="java.requirements"> - &reftitle.required; - <para> - You need a Java VM installed on your machine to use this extension. - </para> - </section> - - &reference.java.configure; +<reference xml:id="ref.java" xmlns="http://docbook.org/ns/docbook"> + <title>PHP / Java Integration</title> - &reference.java.ini; + &reference.java.functions.entities; - <section xml:id="java.resources"> - &reftitle.resources; - &no.resource; - </section> - - <section xml:id="java.constants"> - &reftitle.constants; - &no.constants; - </section> - - <section xml:id="java.examples"> - &reftitle.examples; - <para> - <example> - <title>Java Example</title> - <programlisting role="php"> -<![CDATA[ -<?php -// get instance of Java class java.lang.System in PHP -$system = new Java('java.lang.System'); - -// demonstrate property access -echo 'Java version=' . $system->getProperty('java.version') . '<br />'; -echo 'Java vendor=' . $system->getProperty('java.vendor') . '<br />'; -echo 'OS=' . $system->getProperty('os.name') . ' ' . - $system->getProperty('os.version') . ' on ' . - $system->getProperty('os.arch') . ' <br />'; - -// java.util.Date example -$formatter = new Java('java.text.SimpleDateFormat', - "EEEE, MMMM dd, yyyy 'at' h:mm:ss a zzzz"); - -echo $formatter->format(new Java('java.util.Date')); -?> -]]> - </programlisting> - </example> - <example> - <title>AWT Example</title> - <programlisting role="php"> -<![CDATA[ -<?php -// This example is only intended to be run as a CGI. - -$frame = new Java('java.awt.Frame', 'PHP'); -$button = new Java('java.awt.Button', 'Hello Java World!'); - -$frame->add('North', $button); -$frame->validate(); -$frame->pack(); -$frame->visible = True; - -$thread = new Java('java.lang.Thread'); -$thread->sleep(10000); - -$frame->dispose(); -?> -]]> - </programlisting> - </example> - - Notes: - - <itemizedlist> - <listitem> - <simpara> - <literal>new Java()</literal> will create an instance of a class if - a suitable constructor is available. If no parameters are passed and - the default constructor is useful as it provides access to classes - like <literal>java.lang.System</literal> which expose most of their - functionallity through static methods. - </simpara> - </listitem> - <listitem> - <simpara> - Accessing a member of an instance will first look for bean properties - then public fields. In other words, <literal>print $date.time</literal> - will first attempt to be resolved as <literal>$date.getTime()</literal>, - then as <literal>$date.time</literal>. - </simpara> - </listitem> - <listitem> - <simpara> - Both static and instance members can be accessed on an object with - the same syntax. Furthermore, if the java object is of type - <literal>java.lang.Class</literal>, then static members of the class - (fields and methods) can be accessed. - </simpara> - </listitem> - <listitem> - <para> - Exceptions raised result in PHP warnings, and &null; results. The - warnings may be eliminated by prefixing the method call with an - "@" sign. The following APIs may be used to retrieve and reset - the last error: - <itemizedlist> - <listitem><simpara><function>java_last_exception_get</function></simpara></listitem> - <listitem><simpara><function>java_last_exception_clear</function></simpara></listitem> - </itemizedlist> - </para> - </listitem> - <listitem> - <simpara> - Overload resolution is in general a hard problem given the - differences in types between the two languages. The PHP Java - extension employs a simple, but fairly effective, metric for - determining which overload is the best match. - </simpara> - <simpara> - Additionally, method names in PHP are not case sensitive, potentially - increasing the number of overloads to select from. - </simpara> - <simpara> - Once a method is selected, the parameters are coerced if necessary, - possibly with a loss of data (example: double precision floating point - numbers will be converted to boolean). - <!-- FIXME Why aren't java-doubles converted to PHP-floats? Is this - correct? --> - </simpara> - </listitem> - <listitem> - <simpara> - In the tradition of PHP, arrays and hashtables may pretty much - be used interchangably. Note that hashtables in PHP may only be - indexed by integers or strings; and that arrays of primitive types - in Java can not be sparse. Also note that these constructs are - passed by value, so may be expensive in terms of memory and time. - </simpara> - </listitem> - </itemizedlist> - </para> - </section> - - <section xml:id="java.servlet"> - <title>Java Servlet SAPI</title> - <para> - The Java Servlet SAPI builds upon the mechanism defined by the Java - extension to enable the entire PHP processor to be run as a servlet. - The primary advantage of this from a PHP perspective is that web servers - which support servlets typically take great care in pooling and reusing - JVMs. Build instructions for the Servlet SAPI module can be found in - <filename>php4/sapi/README</filename>. - - Notes: - - <itemizedlist> - <listitem> - <simpara> - While this code is intended to be able to run on any servlet engine, - it has only been tested on Apache's Jakarta/tomcat to date. Bug - reports, success stories and/or patches required to get this code - to run on other engines would be appreciated. - </simpara> - </listitem> - <listitem> - <simpara> - PHP has a habit of changing the working directory. sapi/servlet will - eventually change it back, but while PHP is running the servlet engine - may not be able to load any classes from the CLASSPATH which are - specified using a relative directory syntax, or find the work directory - used for administration and JSP compilation tasks. - </simpara> - </listitem> - </itemizedlist> - </para> - </section> - </partintro> - -&reference.java.functions.entities; - - </reference> +</reference> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ldap/constants.xml?r1=1.3.2.1&r2=1.3.2.2&diff_format=u Index: phpdoc/en/reference/ldap/constants.xml diff -u phpdoc/en/reference/ldap/constants.xml:1.3.2.1 phpdoc/en/reference/ldap/constants.xml:1.3.2.2 --- phpdoc/en/reference/ldap/constants.xml:1.3.2.1 Sat Oct 13 19:48:11 2007 +++ phpdoc/en/reference/ldap/constants.xml Sat Dec 8 16:58:29 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3.2.1 $ --> -<section xml:id="ldap.constants" xmlns="http://docbook.org/ns/docbook"> +<!-- $Revision: 1.3.2.2 $ --> +<appendix xml:id="ldap.constants" xmlns="http://docbook.org/ns/docbook"> &reftitle.constants; &extension.constants; <variablelist> @@ -239,7 +239,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/ldap/reference.xml?r1=1.16.2.1&r2=1.16.2.2&diff_format=u Index: phpdoc/en/reference/ldap/reference.xml diff -u phpdoc/en/reference/ldap/reference.xml:1.16.2.1 phpdoc/en/reference/ldap/reference.xml:1.16.2.2 --- phpdoc/en/reference/ldap/reference.xml:1.16.2.1 Wed Oct 3 11:41:11 2007 +++ phpdoc/en/reference/ldap/reference.xml Sat Dec 8 16:58:29 2007 @@ -1,230 +1,12 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.16.2.1 $ --> -<!-- Purpose: remote.other --> -<!-- Membership: bundled, external --> +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.16.2.2 $ --> - <reference xml:id="ref.ldap" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <title>LDAP Functions</title> - <titleabbrev>LDAP</titleabbrev> +<reference xml:id="ref.ldap" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <title>LDAP &Functions;</title> + &reference.ldap.functions.entities; - <partintro> - <section xml:id="ldap.intro"> - &reftitle.intro; - <para> - LDAP is the Lightweight Directory Access Protocol, and is a - protocol used to access "Directory Servers". The Directory is a - special kind of database that holds information in a tree - structure. - </para> - <para> - The concept is similar to your hard disk directory structure, - except that in this context, the root directory is "The world" - and the first level subdirectories are "countries". Lower levels - of the directory structure contain entries for companies, - organisations or places, while yet lower still we find directory - entries for people, and perhaps equipment or documents. - </para> - <para> - To refer to a file in a subdirectory on your hard disk, you might - use something like: - </para> - <literallayout> - /usr/local/myapp/docs - </literallayout> - <para> - The forwards slash marks each division in the reference, and the - sequence is read from left to right. - </para> - <para> - The equivalent to the fully qualified file reference in LDAP is - the "distinguished name", referred to simply as "dn". An example - dn might be: - </para> - <literallayout> - cn=John Smith,ou=Accounts,o=My Company,c=US - </literallayout> - <para> - The comma marks each division in the reference, and the sequence - is read from right to left. You would read this dn as: - </para> - <literallayout> - country = US - organization = My Company - organizationalUnit = Accounts - commonName = John Smith - </literallayout> - <para> - In the same way as there are no hard rules about how you organise - the directory structure of a hard disk, a directory server - manager can set up any structure that is meaningful for the - purpose. However, there are some conventions that are used. The - message is that you can not write code to access a directory - server unless you know something about its structure, any more - than you can use a database without some knowledge of what is - available. - </para> - <para> - Lots of information about LDAP can be found at - </para> +</reference> - <itemizedlist> - <listitem> - <para> - <link xlink:href="&url.ldap.netscape;">Mozilla</link> - </para> - </listitem> - <listitem> - <para> - <link xlink:href="&url.ldap.openldap;">OpenLDAP Project</link> - </para> - </listitem> - </itemizedlist> - - <para> - The Netscape SDK contains a helpful - <link xlink:href="&url.ldap.netscape.sdk.docs;">Programmer's Guide</link> in - HTML format. - </para> - </section> - - <section xml:id="ldap.requirements"> - &reftitle.required; - <para> - You will need to get and compile LDAP client libraries from either - <link xlink:href="&url.ldap.openldap.source;">OpenLDAP</link> or <link - xlink:href="&url.ldap.bind9;">Bind9.net</link> in order to compile PHP with - LDAP support. -<!-- - The other links are dead.. (7/7/2005) - So were those Netscape links - updated netscape.sdk link to mozilla.org - now. Also added new entity, url.ldap.bind9, which offers a win32 binary - amongst other things (31/7/2005) - - either the University of Michigan <link xlink:href="&url.ldap.mt;"> - ldap-3.3 package</link>, <link xlink:href="&url.ldap.netscape.sdk;"> Netscape - Directory SDK 3.0</link> or <link xlink:href="&url.ldap.openldap.source;"> - OpenLDAP</link> to compile PHP with LDAP support. ---> - </para> - </section> - - &reference.ldap.configure; - - &reference.ldap.ini; - - <section xml:id="ldap.resources"> - &reftitle.resources; - <para> - Most LDAP functions operate on or return resources (e.g. - <function>ldap_connect</function> returns a positive LDAP link identifier - required by most LDAP functions). - </para> - </section> - - &reference.ldap.constants; - - <section xml:id="ldap.examples"> - &reftitle.examples; - <para> - Retrieve information for all entries where the surname starts - with "S" from a directory server, displaying an extract with - name and email address. - </para> - - <example> - <title>LDAP search example</title> - <programlisting role="php"> -<![CDATA[ -<?php -// basic sequence with LDAP is connect, bind, search, interpret search -// result, close connection - -echo "<h3>LDAP query test</h3>"; -echo "Connecting ..."; -$ds=ldap_connect("localhost"); // must be a valid LDAP server! -echo "connect result is " . $ds . "<br />"; - -if ($ds) { - echo "Binding ..."; - $r=ldap_bind($ds); // this is an "anonymous" bind, typically - // read-only access - echo "Bind result is " . $r . "<br />"; - - echo "Searching for (sn=S*) ..."; - // Search surname entry - $sr=ldap_search($ds, "o=My Company, c=US", "sn=S*"); - echo "Search result is " . $sr . "<br />"; - - echo "Number of entires returned is " . ldap_count_entries($ds, $sr) . "<br />"; - - echo "Getting entries ...<p>"; - $info = ldap_get_entries($ds, $sr); - echo "Data for " . $info["count"] . " items returned:<p>"; - - for ($i=0; $i<$info["count"]; $i++) { - echo "dn is: " . $info[$i]["dn"] . "<br />"; - echo "first cn entry is: " . $info[$i]["cn"][0] . "<br />"; - echo "first email entry is: " . $info[$i]["mail"][0] . "<br /><hr />"; - } - - echo "Closing connection"; - ldap_close($ds); - -} else { - echo "<h4>Unable to connect to LDAP server</h4>"; -} -?> -]]> - </programlisting> - </example> - </section> - - <section xml:id="ldap.using"> - <title>Using the PHP LDAP calls</title> - <para> - Before you can use the LDAP calls you will need to know .. - - <itemizedlist> - <listitem> - <para> - The name or address of the directory server you will use - </para> - </listitem> - <listitem> - <para> - The "base dn" of the server (the part of the world directory - that is held on this server, which could be "o=My - Company,c=US") - </para> - </listitem> - <listitem> - <para> - Whether you need a password to access the server (many servers - will provide read access for an "anonymous bind" but require a - password for anything else) - </para> - </listitem> - </itemizedlist></para> - - <para> - The typical sequence of LDAP calls you will make in an - application will follow this pattern: -<literallayout> - ldap_connect() // establish connection to server - | - ldap_bind() // anonymous or authenticated "login" - | - do something like search or update the directory - and display the results - | - ldap_close() // "logout" -</literallayout></para> - </section> - </partintro> - -&reference.ldap.functions.entities; - - </reference> <!-- Keep this comment at the end of the file Local variables: mode: sgml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/memcache/constants.xml?r1=1.3&r2=1.3.2.1&diff_format=u Index: phpdoc/en/reference/memcache/constants.xml diff -u phpdoc/en/reference/memcache/constants.xml:1.3 phpdoc/en/reference/memcache/constants.xml:1.3.2.1 --- phpdoc/en/reference/memcache/constants.xml:1.3 Sun Jun 24 03:23:30 2007 +++ phpdoc/en/reference/memcache/constants.xml Sat Dec 8 16:58:29 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<section xml:id='memcache.constants' xmlns="http://docbook.org/ns/docbook"> +<!-- $Revision: 1.3.2.1 $ --> +<appendix xml:id='memcache.constants' xmlns="http://docbook.org/ns/docbook"> &reftitle.constants; <table> <title>Memcache Constants</title> @@ -36,7 +36,7 @@ </tbody> </tgroup> </table> -</section> +</appendix> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/memcache/reference.xml?r1=1.10.2.1&r2=1.10.2.2&diff_format=u Index: phpdoc/en/reference/memcache/reference.xml diff -u phpdoc/en/reference/memcache/reference.xml:1.10.2.1 phpdoc/en/reference/memcache/reference.xml:1.10.2.2 --- phpdoc/en/reference/memcache/reference.xml:1.10.2.1 Wed Oct 3 11:41:12 2007 +++ phpdoc/en/reference/memcache/reference.xml Sat Dec 8 16:58:29 2007 @@ -1,116 +1,12 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.10.2.1 $ --> -<!-- Purpose: remote.other --> -<!-- Membership: pecl, external --> +<!-- $Revision: 1.10.2.2 $ --> - <reference xml:id="ref.memcache" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <title>Memcache Functions</title> - <titleabbrev>Memcache</titleabbrev> +<reference xml:id="ref.memcache" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <title>Memcache &Functions;</title> + &reference.memcache.functions.entities; - <partintro> - <section xml:id="memcache.intro"> - &reftitle.intro; - <para> - Memcache module provides handy procedural and object oriented interface - to memcached, highly effective caching daemon, which was especially - designed to decrease database load in dynamic web applications. - </para> - <para> - The Memcache module also provides a <link - linkend="ref.session">session</link> handler (<literal>memcache</literal>). - </para> - <para> - More information about memcached can be found at <link - xlink:href="&url.memcache;">&url.memcache;</link>. - </para> - </section> +</reference> - <section xml:id="memcache.requirements"> - &reftitle.required; - <para> - This module uses functions of <link xlink:href="&url.zlib;">zlib</link> - to support on-the-fly data compression. Zlib is required to install - this module. - </para> - <para> - PHP 4.3.3 or newer is required to use the memcache extension. - </para> - </section> - - &reference.memcache.configure; - &reference.memcache.ini; - - <section xml:id="memcache.resources"> - &reftitle.resources; - <para> - There is only one resource type used in memcache module - it's - the link identifier for a cache server connection. - </para> - </section> - - &reference.memcache.constants; - - <section xml:id="memcache.examples"> - &reftitle.examples; - <para> - <example> - <title>memcache extension overview example</title> - <para> - In this example, an object is being saved in the cache and then - retrieved back. Object and other non-scalar types are serialized - before saving, so it's impossible to store resources (i.e. connection - identifiers and others) in the cache. - </para> - <programlisting role="php"> -<![CDATA[ -<?php - -$memcache = new Memcache; -$memcache->connect('localhost', 11211) or die ("Could not connect"); - -$version = $memcache->getVersion(); -echo "Server's version: ".$version."<br/>\n"; - -$tmp_object = new stdClass; -$tmp_object->str_attr = 'test'; -$tmp_object->int_attr = 123; - -$memcache->set('key', $tmp_object, false, 10) or die ("Failed to save data at the server"); -echo "Store data in the cache (data will expire in 10 seconds)<br/>\n"; - -$get_result = $memcache->get('key'); -echo "Data from the cache:<br/>\n"; - -var_dump($get_result); - -?> -]]> - </programlisting> - </example> - </para> - <para> - <example> - <title>Using memcache session handler</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$session_save_path = "tcp://$host:$port?persistent=1&weight=2&timeout=2&retry_interval=10, ,tcp://$host:$port "; -ini_set('session.save_handler', 'memcache'); -ini_set('session.save_path', $session_save_path); - -?> -]]> - </programlisting> - </example> - </para> - </section> - - </partintro> - - &reference.memcache.functions.entities; - - </reference> <!-- Keep this comment at the end of the file Local variables: mode: sgml @@ -131,3 +27,4 @@ vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/mnogosearch/constants.xml?r1=1.3&r2=1.3.2.1&diff_format=u Index: phpdoc/en/reference/mnogosearch/constants.xml diff -u phpdoc/en/reference/mnogosearch/constants.xml:1.3 phpdoc/en/reference/mnogosearch/constants.xml:1.3.2.1 --- phpdoc/en/reference/mnogosearch/constants.xml:1.3 Wed Jun 20 22:24:57 2007 +++ phpdoc/en/reference/mnogosearch/constants.xml Sat Dec 8 16:58:29 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> - <section xml:id="mnogosearch.constants" xmlns="http://docbook.org/ns/docbook"> +<!-- $Revision: 1.3.2.1 $ --> + <appendix xml:id="mnogosearch.constants" xmlns="http://docbook.org/ns/docbook"> &reftitle.constants; &extension.constants; <variablelist> @@ -1028,7 +1028,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/mnogosearch/reference.xml?r1=1.10.2.1&r2=1.10.2.2&diff_format=u Index: phpdoc/en/reference/mnogosearch/reference.xml diff -u phpdoc/en/reference/mnogosearch/reference.xml:1.10.2.1 phpdoc/en/reference/mnogosearch/reference.xml:1.10.2.2 --- phpdoc/en/reference/mnogosearch/reference.xml:1.10.2.1 Wed Oct 3 11:41:12 2007 +++ phpdoc/en/reference/mnogosearch/reference.xml Sat Dec 8 16:58:29 2007 @@ -1,73 +1,10 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.10.2.1 $ --> -<!-- Purpose: remote.other --> -<!-- Membership: pecl, external --> +<!-- $Revision: 1.10.2.2 $ --> <reference xml:id="ref.mnogosearch" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <title>mnoGoSearch Functions</title> - <titleabbrev>mnoGoSearch</titleabbrev> - <partintro> + <title>mnoGoSearch &Functions;</title> - <section xml:id="mnogosearch.intro"> - &reftitle.intro; - <para> - These functions allow you to access the mnoGoSearch (former - UdmSearch) free search engine. mnoGoSearch is a full-featured search - engine software for intranet and internet servers, distributed under the - GNU license. mnoGoSearch has a number of unique features, which makes it - appropriate for a wide range of applications from search within your - site to a specialized search system such as cooking recipes or newspaper - search, FTP archive search, news articles search, etc. It offers - full-text indexing and searching for HTML, PDF, and text documents. - mnoGoSearch consists of two parts. The first is an indexing mechanism - (indexer). The purpose of the indexer is to walk through HTTP, FTP, NEWS - servers or local files, recursively grabbing all the documents and - storing meta-data about that documents in a SQL database in a smart and - effective manner. After every document is referenced by its - corresponding URL, meta-data is collected by the indexer for later use - in a search process. The search is performed via Web interface. C, CGI, - PHP and Perl search front ends are included. - </para> - <para> - More information about mnoGoSearch can be found at - <link xlink:href="&url.mnogo;">&url.mnogo;</link>. - </para> - <note> - <para> - &pecl.moved-ver;5.1.0. - </para> - </note> - ¬e.no-windows.extension; - </section> - - <section xml:id="mnogosearch.requirements"> - &reftitle.required; - <para> - Download mnoGosearch from - <link xlink:href="&url.mnogo;">&url.mnogo;</link> and install it on your - system. You need at least version 3.1.10 of mnoGoSearch installed to use - these functions. - </para> - </section> - - &reference.mnogosearch.configure; - - <section xml:id="mnogosearch.configuration"> - &reftitle.runtime; - &no.config; - </section> - - <section xml:id="mnogo.resources"> - &reftitle.resources; - <para> - </para> - </section> - - &reference.mnogosearch.constants; - - </partintro> - -&reference.mnogosearch.functions.entities; + &reference.mnogosearch.functions.entities; </reference> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/network/constants.xml?r1=1.8&r2=1.8.2.1&diff_format=u Index: phpdoc/en/reference/network/constants.xml diff -u phpdoc/en/reference/network/constants.xml:1.8 phpdoc/en/reference/network/constants.xml:1.8.2.1 --- phpdoc/en/reference/network/constants.xml:1.8 Wed Jun 20 22:25:03 2007 +++ phpdoc/en/reference/network/constants.xml Sat Dec 8 16:58:29 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> -<section xml:id="network.constants" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> +<!-- $Revision: 1.8.2.1 $ --> +<appendix xml:id="network.constants" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> &reftitle.constants; &extension.constants.core; <table> @@ -223,7 +223,7 @@ </tbody> </tgroup> </table> -</section> +</appendix> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/network/reference.xml?r1=1.8.2.1&r2=1.8.2.2&diff_format=u Index: phpdoc/en/reference/network/reference.xml diff -u phpdoc/en/reference/network/reference.xml:1.8.2.1 phpdoc/en/reference/network/reference.xml:1.8.2.2 --- phpdoc/en/reference/network/reference.xml:1.8.2.1 Wed Oct 3 11:41:13 2007 +++ phpdoc/en/reference/network/reference.xml Sat Dec 8 16:58:29 2007 @@ -1,47 +1,12 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8.2.1 $ --> -<!-- Purpose: remote.other --> -<!-- Membership: core --> +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.8.2.2 $ --> - <reference xml:id="ref.network" xmlns="http://docbook.org/ns/docbook"> - <title>Network Functions</title> - <titleabbrev>Network</titleabbrev> - <partintro> +<reference xml:id="ref.network" xmlns="http://docbook.org/ns/docbook"> + <title>Network &Functions;</title> - <section xml:id="network.intro"> - &reftitle.intro; - <para> - - </para> - </section> - - <section xml:id="network.requirements"> - &reftitle.required; - &no.requirement; - </section> - - <section xml:id="network.installation"> - &reftitle.install; - &no.install; - </section> + &reference.network.functions.entities; - &reference.network.ini; - - <section xml:id="network.resources"> - &reftitle.resources; - <para> - This extension defines a file pointer resource returned by - <function>fsockopen</function> and <function>pfsockopen</function>. - </para> - </section> - - &reference.network.constants; - - </partintro> - -&reference.network.functions.entities; - - </reference> +</reference> <!-- Keep this comment at the end of the file Local variables: mode: sgml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/notes/reference.xml?r1=1.11.2.1&r2=1.11.2.2&diff_format=u Index: phpdoc/en/reference/notes/reference.xml diff -u phpdoc/en/reference/notes/reference.xml:1.11.2.1 phpdoc/en/reference/notes/reference.xml:1.11.2.2 --- phpdoc/en/reference/notes/reference.xml:1.11.2.1 Wed Oct 3 11:41:13 2007 +++ phpdoc/en/reference/notes/reference.xml Sat Dec 8 16:58:29 2007 @@ -1,32 +1,8 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.11.2.1 $ --> -<!-- Purpose: remote.other --> -<!-- Membership: pecl --> -<!-- State: experimental --> +<!-- $Revision: 1.11.2.2 $ --> <reference xml:id="ref.notes" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <title>Lotus Notes Functions</title> - <titleabbrev>Lotus Notes</titleabbrev> - - <partintro> - <section xml:id="notes.intro"> - &reftitle.intro; - &warn.experimental; - <note> - <para> - &pecl.moved-ver;5.0.0. - &pecl.info; - <link xlink:href="&url.pecl.package;notes">&url.pecl.package;notes</link>. - </para> - </note> - <warning> - <para> - This extension is currently not supported, thus looking for a - maintainer. - </para> - </warning> - </section> - </partintro> + <title>Lotus Notes &Functions;</title> &reference.notes.functions.entities; http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/sam/constants.xml?r1=1.8&r2=1.8.2.1&diff_format=u Index: phpdoc/en/reference/sam/constants.xml diff -u phpdoc/en/reference/sam/constants.xml:1.8 phpdoc/en/reference/sam/constants.xml:1.8.2.1 --- phpdoc/en/reference/sam/constants.xml:1.8 Wed Jun 20 22:25:18 2007 +++ phpdoc/en/reference/sam/constants.xml Sat Dec 8 16:58:30 2007 @@ -1,6 +1,6 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.8 $ --> -<section xml:id="mq.constants" xmlns="http://docbook.org/ns/docbook"> +<!-- $Revision: 1.8.2.1 $ --> +<appendix xml:id="sam.constants" xmlns="http://docbook.org/ns/docbook"> &reftitle.constants; &extension.constants; <variablelist> @@ -427,7 +427,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/sam/reference.xml?r1=1.9.2.1&r2=1.9.2.2&diff_format=u Index: phpdoc/en/reference/sam/reference.xml diff -u phpdoc/en/reference/sam/reference.xml:1.9.2.1 phpdoc/en/reference/sam/reference.xml:1.9.2.2 --- phpdoc/en/reference/sam/reference.xml:1.9.2.1 Wed Oct 3 11:41:14 2007 +++ phpdoc/en/reference/sam/reference.xml Sat Dec 8 16:58:30 2007 @@ -1,660 +1,12 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.9.2.1 $ --> -<!-- Purpose: remote.other --> -<!-- Membership: pecl --> +<!-- $Revision: 1.9.2.2 $ --> + <reference xml:id="ref.sam" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <title>SAM - Simple Asynchronous Messaging</title> - <titleabbrev>SAM</titleabbrev> + <title>SAM &Functions;</title> <partintro> - <section xml:id="sam.intro"> - &reftitle.intro; - <para> - This extension provides access to the functionality of messaging and - queueing systems, such as the IBM WebSphere MQSeries family of products, - from PHP scripts. The interface is designed to make it extremely simple - to do the more commonly required tasks such as deliver simple text - messages to queues while still allowing skilled users to do more complex - messaging operations. For many users the complexities of setting up - numerous options can be simply ignored. - </para> - <para> - The SAM extension is a framework that provides a very simple API that can be used to - access a number of messaging middleware systems. Currently the package - includes built-in support for the MQTT (MQ Telemetry Transport) messaging protocol and support for the IBM - Messaging and Queuing middleware products. SAM is designed to be readily extended to - support other messaging systems and extension modules may be written in C or PHP. - </para> - </section> <!-- xml:id=sam.intro --> - - <section xml:id='sam.installation'> - &reftitle.install; - <para> - The SAM framework and MQTT support can be built and used without any other prerequisites. - Support for protocols other than MQTT is provided via a set of libraries and some client - side code referred to as XMS. - </para> - <para> - If you only intend to use the built-in MQTT support then you can build and configure SAM as - an extension or simply refer to "php_sam.php" with a "requires" or "requires_once" clause - in your PHP script. In this case you need only install the code without building the - extension using the pear installer: - <screen> - <![CDATA[ - pecl install -B SAM -]]> - </screen> - </para> - <section xml:id='sam.installation.prerequisites'> - <title>Prerequisites</title> - <para> - The SAM extension interfaces to the IBM Messaging and Queuing - middleware products using a set of libraries and some client side code - referred to as XMS. This package is available as a free download in - the guise of IBM support pack IA94. There is a description of this - package and download links in the article <link xlink:href="&url.ibm.ia94;"> - Introducing XMS - The IBM Message Service API</link>. - </para> - <para> - If you intend to use SAM to access the Messaging and Queuing - infrastructure within WebSphere MQ then you will also need to have - installed a local MQ queue manager or installed the WebSphere MQ - clients package. The clients package is freely available as a support - pack (<link xlink:href="&url.ibm.mqc6;">MQC6</link>). - </para> - <para> - If you are only aiming to experiment with sending messages to and from - WebSphere Application Server queues using the WebSphere Platform - Messaging protocol (WPM) then you do not need to install the MQC6 - package. - </para> - <para> - After installing these packages you will need to ensure the XMS binary - and, if you are using it, the MQ client bin directory are included in - the PATH environment variable so that Apache and PHP can find the - dependent .DLLs/libraries. - </para> - </section> - <section xml:id='sam.installation.linux'> - <title>Linux installation steps</title> - <para> -The sam extension is supplied as a PECL module, which -you should be able to download and install in one step as follows: - <screen> - <![CDATA[ -pecl install sam -]]> - </screen> - (Depending on your php environment, you will probably need to be root - to do this.) - </para> - <para> - Make sure that the module is loaded by PHP, by adding following line - to &php.ini;: - <screen> -<![CDATA[ -extension=sam.so -]]> - </screen> - If you intend to use the XMS support to access the IBM Messaging and Queuing family - you must also enable the SAM XMS extension. - <screen> - <![CDATA[ -extension=sam_xms.so -]]> - </screen> - </para> - <para> -If you cannot use the PEAR installer, you can download the extension and build -it manually: - <screen> -<![CDATA[ -pear download sam #downloads sam-<version>.tgz -tar -xzf sam-<version>.tgz -cd sam-<version> -phpize -./configure -make -make install #you may need to be root for this step -]]> - </screen> - </para> - <para> - To work with the very latest source, you'll need to extract it from - cvs and build manually as above. - </para> - </section> - <section xml:id='sam.installation.windows'> - <title>Windows installation steps</title> - <para> -You will probably need to build the sam extension for Windows as there -are only a limited range of pre-built binaries available from the SAM website. -The extension can be built using the standard Windows extension build procedures. - </para> - <para> - You will need the PHP source tree for the version of PHP you wish to - build the SAM extension against which you can obtain from php.net. - This should be unpacked into a working directory of your choice. - </para> - <para> - You will also need the libraries and headers used by PHP extensions - available from http://www.php.net/extra/win32build.zip and this - should be unzipped so that is in your working directory. - </para> - <para> - You should have something like: - <screen> -<![CDATA[ -c:\php-build\- - | - |---php-5.0.5--|---build - | |---ext - | |--- ... - | - |---win32build--|---bin - |---include - |---lib -]]> - </screen> - </para> - <para> - You will need a compiler such as the free version of Visual Studio C++ - Express from the Microsoft web site. Also you need the Microsoft - Windows Platform SDK which again can be downloaded from the Microsoft web site. - </para> - <para> -Obtain the SAM extension source using pear (pecl download sam) or by using -CVS and copy the files to a new "sam" directory under the "ext" directory -in your PHP source tree. - </para> - <para> - To build the extension open a build environment window by going to the - start menu->all programs->microsoft platform SDK for windows-> - open build environment window->windows 200 build environment-> - set windows 2000 build environment (retail) - </para> - <para> - This should open a command prompt with all the environment variables - set up to access the platform SDK etc. You then need to set the - environment variables for Visual Studio by issuing the command - "vcvars32.bat" in the window. - </para> - <para> - Change directory to your working directory e.g. cd c:\php-build. Then - make sure the win32build tools are accessible by adding them to the - PATH environment variable: - <screen> -<![CDATA[ -set PATH=..\win32build\bin;%PATH% -]]> - </screen> - </para> - <para> - Run the buildconf.bat command. This should rebuild the configure.js - file. - </para> - <para> -Run the cscript command with the appropriate options. To build just the -SAM extension framework and MQTT support use: - <screen> - <![CDATA[ -cscript /nologo configure.js --with-sam -]]> - </screen> -To build the SAM framework and the XMS support use: - <screen> - <![CDATA[ -cscript /nologo configure.js --with-sam --with-sam_xms="c:\program files\ibm\xms" -]]> - </screen> - </para> - <para> -The additional parameter passed for sam_xms is the installation path to the -XMS libraries and runtime that were installed as described under prerequisites -at the top of this page. - </para> - <para> - You can specify whatever other cscript parameters you require to - include or exclude items from the php build or select options. - </para> - <para> -Assuming all has gone well so far you can now finally run a make for the SAM framework! - <screen> - <![CDATA[ -nmake php_sam.dll -]]> - </screen> -Also if you are using the XMS support you must make the sam_xms extensions: - <screen> - <![CDATA[ -nmake php_sam_xms.dll -]]> - </screen> - </para> - <para> -If you have used Visual Studio 2005 to build the DLLs please see below for additional steps that -must be carried out before proceeding further. - </para> - <para> -The DLLs created (php_sam.dll and optionally php_sam_xms.dll) can now be copied to the -subdirectory appropriate for your PHP set-up. Make sure that the module(s) are loaded by PHP, by adding following line to - &php.ini; - : - <screen> - <![CDATA[ -extension=php_sam.dll -]]> - </screen> - If you intend to use the XMS support to access the IBM Messgaing and Queuing family - you must also enable the SAM XMS extension. - <screen> - <![CDATA[ -extension=php_sam_xms.dll -]]> - </screen> - </para> - </section> - <section xml:id='sam.installation.VS2005'> - <title>Additional steps for Visual Studio 2005</title> - <para> - If you build the SAM extension with the Microsoft Visual Studio 2005 - compiler and tools you need to perform an additional step in the build - process to ensure the <filename>php_sam.dll</filename> is able to link - with the C runtime libraries at runtime. This step includes the - dependancy manifest into the DLL. Switch to the directory where the - <filename>php_sam.dll</filename> has been generated (usually - Release_TS or Debug_TS below the php source directory) and issue the - following magic incantation: - <screen> -<![CDATA[ -mt.exe -manifest php_sam.dll.manifest -outputresource:php_sam.dll;2 -]]> - </screen> -If you are using the XMS capabilities you will need to do the same with the -SAM XMS DLL: - <screen> - <![CDATA[ -mt.exe -manifest php_sam_xms.dll.manifest -outputresource:php_sam_xms.dll;2 -]]> - </screen> - </para> - <para> - If you build the SAM extension using the compiler and libaries from - Microsoft Visual Studio 2005 you will also need to ensure that the - runtime components are installed on the system on which you intend to - use SAM. This can be accomplished by installing Visual Studio 2005 or - by using the freely distributable - <link xlink:href="&url.ms.crt;">runtime package</link>. - </para> - </section> - <section xml:id='sam.installation.configutaion'> - <title>Protocol support and mapping</title> - <para> -The SAM framework can be extended to support other messaging protocols and connection mechanisms. To add -support for a new protocol or connection library a support class has to be defined, either as a C extension -or as a PHP script, and a "factory" script must be created. The support class must implement all the -methods of the SAMConnection class though it should not inherit from SAMConnection. The factory script -will be called by the SAM framework to create an instance of the implemented class. The way SAM chooses -which factory to call is based on the protocol specified as the first parameter of the "connect" call. - </para> - <para> -By default the built-in MQTT support will be used if a connect call specifies a protocol of SAM_MQTT ("mqtt"), for -any other protocol SAM will attempt to use the XMS support extension. To add support for additional -protocols or to modify the default behavior entries may be added to &php.ini; in the [sam] section. The -default mapping is equivalent to the following entries: - <screen> - <![CDATA[ -[sam] -sam.factory.mqtt=mqtt -sam.factory.wmq=xms -sam.factory.wmq:client=xms -sam.factory.wmq:bindings=xms -sam.factory.wpm=xms -sam.factory.rtt=xms -]]> - </screen> -As can be seen from these examples the entries take the form of "sam.factory.pppp=xxx" where pppp is the protocol -string specified on the connect call and xxx is a factory suffix. Note: SAM defines constants for these protocol -strings such that SAM_WMQ=wmq, SAM_WPM=wpm, SAM_RTT=rtt, SAM_MQTT=mqtt, etc. - </para> - <para> -When identifying the support code to use on a connect call SAM looks up the protocol name in the &php.ini; entries -and then invokes a factory script named sam_factory_xxx.php. If no entry is found the support will default to XMS. - </para> - </section> - </section> <!-- xml:id=sam.installation --> - - <section xml:id='sam.usage'> - <title>API Usage</title> - - <section xml:id='sam.connections'> - <title>Connections</title> - <para> - In order to perform any messaging and queueing functions a connection - must be established with a messaging server by creating a SAMConnection - object and calling its "connect" method, with a set of connection - properties, to connect the PHP script to the messaging server. Until - such time as the SAMConnection object is destroyed the connection - will be maintained and available for use. All SAMConnection objects - are destroyed when the PHP script exits. - </para> - <para> - A set of default properties may be used in connecting to a messaging - server but as a minimum the PHP script must specify a protocol to be - used. - </para> - <para> - <example> - <title>Creating a connection and connecting to a remote WebSphere MQSeries Messaging Server</title> - <programlisting role='php'> -<![CDATA[ -<?php - $conn = new SAMConnection(); - $conn->connect(SAM_WMQ, array(SAM_HOST => 'myhost.mycompany.com', - SAM_PORT => 1506, - SAM_BROKER => 'mybroker')); -?> -]]> - </programlisting> - </example> - </para> - <para> - <example> - <title>Creating a connection and connecting to a remote WebSphere Application Server</title> - <programlisting role='php'> -<![CDATA[ -<?php - $conn = new SAMConnection(); - $conn->connect(SAM_WPM, array(SAM_ENDPOINTS => 'localhost:7278:BootstrapBasicMessaging', - SAM_BUS => 'Bus1', - SAM_TARGETCHAIN => 'InboundBasicMessaging')); -?> -]]> - </programlisting> - </example> - </para> - <para> - <example> - <title>Creating a connection and connecting to an MQTT server</title> - <programlisting role='php'> - <![CDATA[ -<?php - $conn = new SAMConnection(); - $conn->connect(SAM_MQTT, array(SAM_HOST => 'myhost.mycompany.com', - SAM_PORT => 1883)); -?> - ]]> - </programlisting> - </example> - </para> - </section> <!-- xml:id=sam.connections --> - - <section xml:id='sam.messages'> - <title>Messages</title> - <para> - Messages sent to and received from queues are represented by the - SAMMessage object. The SAMMessage object encapsulates the body of - the message (if one exists) and the header properties associated with - the message. A SAMMessage object is either supplied as a parameter to - a messaging operation or returned as a result. - </para> - <para> - <example> - <title>Creating a message with a simple text body</title> - <programlisting role="php"> -<![CDATA[ -<?php -$msg = new SAMMessage('This is a simple text message'); -?> -]]> - </programlisting> - </example> - </para> - <para> - Messages may have header properties associated with them that provide - control over the transport of the message or further information to the - receiving application. By default message properties are delivered to - the underlying messaging system as strings and in this case they may be - set with the following simple syntax: - </para> - <para> - <example> - <title>Setting a text format property using the default syntax</title> - <programlisting role="php"> -<![CDATA[ -<?php - $msg->header->myPropertyName = 'textData'; -?> -]]> - </programlisting> - </example> - </para> - <para> - If it is desired to pass type information an alternative syntax may be - used where the value and the type hint are passed in an associative - array: - </para> - <para> - <example> - <title>Setting a property using a type hint</title> - <programlisting role="php"> -<![CDATA[ -<?php - $msg->header->myPropertyName = array(3.14159, SAM_FLOAT); -?> -]]> - </programlisting> - </example> - </para> - <para> - Properties may also be extracted from the header of a message. - </para> - <para> - <example> - <title>Retrieving a property from a message header</title> - <programlisting role="php"> -<![CDATA[ -<?php - $myProperty = $msg->header->myPropertyName; -?> -]]> - </programlisting> - </example> - </para> - </section> <!-- xml:id=sam.messages --> - - <section xml:id='sam.operations'> - <title>Messaging operations</title> - <para> - All messaging operations are performed through calls to methods on the - connection object. - To add a message to a queue the "send" method is used, to obtain a - message from a queue the "receive" method is used. Other methods - provide publish and subscribe functionality and control of transaction - boundaries. - </para> - <para> - <example> - <title>Adding a message to a queue and receiving a response</title> - <programlisting role="php"> -<![CDATA[ -<?php -$msg = new SAMMessage('This is a simple text message'); -$msg->header->SAM_REPLY_TO = 'queue://receive/test'; -$correlid = $conn->send('queue://send/test', $msg); - -if (!$correlid) { - // The Send failed! - echo "Send failed ($conn->errno) $conn->error"; -} else { - $resp = $conn->receive('queue://receive/test', array(SAM_CORRELID => $correlid)); -} -?> -]]> - </programlisting> - </example> - </para> - </section> <!-- xml:id=sam.operations --> - <section xml:id='sam.pubsub'> - <title>Publish/Subscribe and suscriptions to topics</title> - <para> - SAM allows messages to be sent either to queues or, for WebSphere MQ - and WPM, to publish/subscribe topics. - A topic desintation is specified to SAM in the usual way, i.e. in the - form 'topic://fred', rather than the form 'queue://AQUEUE' used for - point to point operation. To use publish/subscribe it is simply - necessary to specify the correct broker name on the SAMConnect - "connect" call and the desired topic in the destination argument to - the SAMConnect "send" and "receive" calls. The PHP interface is - otherwise identical to the point to point model. - </para> - <para> - By default, SAM creates non-durable subscriptions when using - publish/subscribe. This means that if a client application is - inactive when messages are published to a topic, then it will not - receive them when it subsequently restarted. SAM does also allow - durable subscriptions to be made to topics when using WPM or WebSphere - MQ publish/subscribe. The purpose of these subscriptions is to allow - data to be received by a client application even if that client was not - active at the time the data was published. - </para> - <para> - Durable subscriptions are specified by using the SAMConnect "subscribe" - call. This method takes the destination topic as an input parameter and - returns a subscription identifier that may be used on subsequent - "receive" calls. When the subscription is no longer required the - SAMConnection "unsubscribe" method should be used to delete the - subscription. - </para> - <para> - <example> - <title>Creating a durable subscription to a topic</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$subName = $conn->subscribe('topic://A'); - -if (!$subName) { - echo "Subscribe failed"; -} else { - # Subscribe was OK - // ... -} -?> -]]> - </programlisting> - </example> - </para> - <para> - <example> - <title>Subscribing to a topic using a WebSphere Platform Messaging (WPM) server</title> - <programlisting role="php"> -<![CDATA[ -<?php -$conn = new SAMConnection(); -// Note: For pub/sub on WPM, when connecting the name of a messaging engine -// to hold the durable subscription (SAM_WPM_DUR_SUB_HOME) must be specified. -$conn->connect(SAM_WMQ, array(SAM_ENDPOINTS => 'localhost:7278:BootstrapBasicMessaging', - SAM_BUS => 'Bus1', - SAM_TARGETCHAIN => 'InboundBasicMessaging' - SAM_WPM_DUR_SUB_HOME => 'MyMachineNode01.server1-Bus1')); - -$subName = $conn->subscribe('topic://A'); - -if (!$subName) { - echo "Subscribe failed"; -} else { - # Subscribe was OK - // ... -} -?> -]]> - </programlisting> - </example> - </para> - <para> - <example> - <title>Receiving published data using a durable subscription</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$msg = $conn->receive($subName); -if ($msg) { - echo "Received a message OK"; -} else { - echo "The receive failed"; -} - -?> -]]> - </programlisting> - </example> - </para> - <para> - <example> - <title>Deleting a durable subscription to a topic</title> - <programlisting role="php"> -<![CDATA[ -<?php - -if (!$conn->unsubscribe($subName)) { - echo "Unsubscribe failed"; -} - -?> -]]> - </programlisting> - </example> - </para> - </section> <!-- xml:id=sam.pubsub --> - <section xml:id='sam.errors'> - <title>Error handling</title> - <para> - All SAMConnection methods that provide access to messaging operations - return &false; if an error occurred in processing the request. - In addition the SAMConnection object has two properties, "errno" - and "error", that provide respectively the error number and - text description of the last error to occur on the connection. - </para> - <para> - <example> - <title>Handling an error from a method that returns no result</title> - <programlisting role="php"> - <![CDATA[ -<?php - if (!$conn->commit()) { - // The commit failed! - echo "Commit failed ($conn->errno) $conn->error"; - } -?> - ]]> - </programlisting> - </example> - </para> - <para> - <example> - <title>Handling an error from a method that returns a result</title> - <programlisting role="php"> -<![CDATA[ -<?php -$correlid = $conn->send('queue://send/test', $msg); - -if (!$correlid) { - // The Send failed! - echo "Send failed ($conn->errno) $conn->error"; -} else { - ... -} -?> -]]> - </programlisting> - </example> - </para> - </section> <!-- xml:id=sam.errors --> - </section> <!-- xml:id=sam.usage --> + <!-- FIXME: Upgrade to the new-oo-markup --> <!-- class definition section --> <section xml:id='sam.classes'> &reftitle.classes; @@ -827,9 +179,6 @@ </section> <!-- xml:id=sam.classes --> - <!-- Include the stuff from constants.xml? --> - &reference.sam.constants; - </partintro> <!-- This seems to create the table of contents --> @@ -856,3 +205,4 @@ vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/sockets/constants.xml?r1=1.7&r2=1.7.2.1&diff_format=u Index: phpdoc/en/reference/sockets/constants.xml diff -u phpdoc/en/reference/sockets/constants.xml:1.7 phpdoc/en/reference/sockets/constants.xml:1.7.2.1 --- phpdoc/en/reference/sockets/constants.xml:1.7 Thu Aug 16 14:58:11 2007 +++ phpdoc/en/reference/sockets/constants.xml Sat Dec 8 16:58:30 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> -<section xml:id="sockets.constants" xmlns="http://docbook.org/ns/docbook"> +<!-- $Revision: 1.7.2.1 $ --> +<appendix xml:id="sockets.constants" xmlns="http://docbook.org/ns/docbook"> &reftitle.constants; &extension.constants; <variablelist> @@ -379,7 +379,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/sockets/reference.xml?r1=1.26.2.1&r2=1.26.2.2&diff_format=u Index: phpdoc/en/reference/sockets/reference.xml diff -u phpdoc/en/reference/sockets/reference.xml:1.26.2.1 phpdoc/en/reference/sockets/reference.xml:1.26.2.2 --- phpdoc/en/reference/sockets/reference.xml:1.26.2.1 Wed Oct 3 11:41:15 2007 +++ phpdoc/en/reference/sockets/reference.xml Sat Dec 8 16:58:30 2007 @@ -1,249 +1,13 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.26.2.1 $ --> -<!-- Purpose: remote.other --> -<!-- Membership: bundled --> +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.26.2.2 $ --> - <reference xml:id="ref.sockets" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <title>Socket Functions</title> - <titleabbrev>Sockets</titleabbrev> +<reference xml:id="ref.sockets" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <title>Socket &Functions;</title> - <partintro> + &reference.sockets.functions.entities; - <section xml:id="sockets.intro"> - &reftitle.intro; - <para> - The socket extension implements a low-level interface to the socket - communication functions based on the popular BSD sockets, providing the - possibility to act as a socket server as well as a client. - </para> - <para> - For a more generic client-side socket interface, see - <function>stream_socket_client</function>, - <function>stream_socket_server</function>, - <function>fsockopen</function>, and - <function>pfsockopen</function>. - </para> - <para> - When using these functions, it is important to remember that while - many of them have identical names to their C counterparts, they - often have different declarations. Please be sure to read the - descriptions to avoid confusion. - </para> - <para> - Those unfamiliar with socket programming can find a lot - of useful material in the appropriate Unix man pages, and there is a great - deal of tutorial information on socket programming in C on the web, much - of which can be applied, with slight modifications, to socket programming - in PHP. The <link xlink:href="&url.socket.faq;">Unix Socket - FAQ</link> might be a good start. - </para> - <note> - <para> - &pecl.moved-ver;5.3.0. - </para> - </note> - </section> - - <section xml:id="sockets.requirements"> - &reftitle.required; - &no.requirement; - </section> - - &reference.sockets.configure; - - <section xml:id="sockets.configuration"> - &reftitle.runtime; - &no.config; - </section> +</reference> - <section xml:id="sockets.resources"> - &reftitle.resources; - <para> - <function>socket_accept</function>, - <function>socket_create_listen</function> and - <function>socket_create</function> return socket recources. - </para> - </section> - - &reference.sockets.constants; - - <section xml:id="sockets.errors"> - <title>Socket Errors</title> - <para> - The socket extension was written to provide a usable interface to the - powerful BSD sockets. Care has been taken that the functions work equally - well on Win32 and Unix implementations. Almost all of the sockets - functions may fail under certain conditions and therefore emit an - <constant>E_WARNING</constant> message describing the error. Sometimes this - doesn't happen to the desire of the developer. For example the function - <function>socket_read</function> may suddenly emit an - <constant>E_WARNING</constant> message because the connection broke - unexpectedly. It's common to suppress the warning with the - <literal>@</literal>-operator and catch the error code within the - application with the <function>socket_last_error</function> function. You - may call the <function>socket_strerror</function> function with this error - code to retrieve a string describing the error. See their description for - more information. - </para> - <note> - <para> - The <constant>E_WARNING</constant> messages generated by the socket - extension are in English though the retrieved error message will appear - depending on the current locale (<constant>LC_MESSAGES</constant>): - <programlisting role="php"> -<![CDATA[ -Warning - socket_bind() unable to bind address [98]: Die Adresse wird bereits verwendet -]]> - </programlisting> - </para> - </note> - </section> - - <section xml:id="sockets.examples"> - &reftitle.examples; - <para> - <example> - <title>Socket example: Simple TCP/IP server</title> - <para> - This example shows a simple talkback server. Change the - <varname>address</varname> and <varname>port</varname> variables - to suit your setup and execute. You may then connect to the - server with a command similar to: <command>telnet 192.168.1.53 - 10000</command> (where the address and port match your - setup). Anything you type will then be output on the server - side, and echoed back to you. To disconnect, enter 'quit'. - </para> - <programlisting role="php"> -<![CDATA[ -#!/usr/local/bin/php -q -<?php -error_reporting(E_ALL); - -/* Allow the script to hang around waiting for connections. */ -set_time_limit(0); - -/* Turn on implicit output flushing so we see what we're getting - * as it comes in. */ -ob_implicit_flush(); - -$address = '192.168.1.53'; -$port = 10000; - -if (($sock = socket_create(AF_INET, SOCK_STREAM, SOL_TCP)) === false) { - echo "socket_create() failed: reason: " . socket_strerror(socket_last_error()) . "\n"; -} - -if (socket_bind($sock, $address, $port) === false) { - echo "socket_bind() failed: reason: " . socket_strerror(socket_last_error($sock)) . "\n"; -} - -if (socket_listen($sock, 5) === false) { - echo "socket_listen() failed: reason: " . socket_strerror(socket_last_error($sock)) . "\n"; -} - -do { - if (($msgsock = socket_accept($sock)) === false) { - echo "socket_accept() failed: reason: " . socket_strerror(socket_last_error($sock)) . "\n"; - break; - } - /* Send instructions. */ - $msg = "\nWelcome to the PHP Test Server. \n" . - "To quit, type 'quit'. To shut down the server type 'shutdown'.\n"; - socket_write($msgsock, $msg, strlen($msg)); - - do { - if (false === ($buf = socket_read($msgsock, 2048, PHP_NORMAL_READ))) { - echo "socket_read() failed: reason: " . socket_strerror(socket_last_error($msgsock)) . "\n"; - break 2; - } - if (!$buf = trim($buf)) { - continue; - } - if ($buf == 'quit') { - break; - } - if ($buf == 'shutdown') { - socket_close($msgsock); - break 2; - } - $talkback = "PHP: You said '$buf'.\n"; - socket_write($msgsock, $talkback, strlen($talkback)); - echo "$buf\n"; - } while (true); - socket_close($msgsock); -} while (true); - -socket_close($sock); -?> -]]> - </programlisting> - </example> - </para> - <para> - <example> - <title>Socket example: Simple TCP/IP client</title> - <para> - This example shows a simple, one-shot HTTP client. It simply - connects to a page, submits a HEAD request, echoes the reply, - and exits. - </para> - <programlisting role="php"> -<![CDATA[ -<?php -error_reporting(E_ALL); - -echo "<h2>TCP/IP Connection</h2>\n"; - -/* Get the port for the WWW service. */ -$service_port = getservbyname('www', 'tcp'); - -/* Get the IP address for the target host. */ -$address = gethostbyname('www.example.com'); - -/* Create a TCP/IP socket. */ -$socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP); -if ($socket === false) { - echo "socket_create() failed: reason: " . socket_strerror(socket_last_error()) . "\n"; -} else { - echo "OK.\n"; -} - -echo "Attempting to connect to '$address' on port '$service_port'..."; -$result = socket_connect($socket, $address, $service_port); -if ($result === false) { - echo "socket_connect() failed.\nReason: ($result) " . socket_strerror(socket_last_error($socket)) . "\n"; -} else { - echo "OK.\n"; -} - -$in = "HEAD / HTTP/1.1\r\n"; -$in .= "Host: www.example.com\r\n"; -$in .= "Connection: Close\r\n\r\n"; -$out = ''; - -echo "Sending HTTP HEAD request..."; -socket_write($socket, $in, strlen($in)); -echo "OK.\n"; - -echo "Reading response:\n\n"; -while ($out = socket_read($socket, 2048)) { - echo $out; -} - -echo "Closing socket..."; -socket_close($socket); -echo "OK.\n\n"; -?> -]]> - </programlisting> - </example> - </para> - </section> - </partintro> - -&reference.sockets.functions.entities; - - </reference> <!-- Keep this comment at the end of the file Local variables: mode: sgml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ssh2/constants.xml?r1=1.3&r2=1.3.2.1&diff_format=u Index: phpdoc/en/reference/ssh2/constants.xml diff -u phpdoc/en/reference/ssh2/constants.xml:1.3 phpdoc/en/reference/ssh2/constants.xml:1.3.2.1 --- phpdoc/en/reference/ssh2/constants.xml:1.3 Wed Jun 20 22:25:27 2007 +++ phpdoc/en/reference/ssh2/constants.xml Sat Dec 8 16:58:30 2007 @@ -1,7 +1,7 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.3.2.1 $ --> <!-- Generated by xml_proto.php v2.1. Found in /scripts directory of phpdoc. --> -<section xml:id="ssh2.constants" xmlns="http://docbook.org/ns/docbook"> +<appendix xml:id="ssh2.constants" xmlns="http://docbook.org/ns/docbook"> &reftitle.constants; &extension.constants; <variablelist> @@ -147,7 +147,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/ssh2/reference.xml?r1=1.6.2.1&r2=1.6.2.2&diff_format=u Index: phpdoc/en/reference/ssh2/reference.xml diff -u phpdoc/en/reference/ssh2/reference.xml:1.6.2.1 phpdoc/en/reference/ssh2/reference.xml:1.6.2.2 --- phpdoc/en/reference/ssh2/reference.xml:1.6.2.1 Wed Oct 3 11:41:15 2007 +++ phpdoc/en/reference/ssh2/reference.xml Sat Dec 8 16:58:30 2007 @@ -1,27 +1,10 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.6.2.1 $ --> -<!-- Purpose: remote.other --> -<!-- Membership: pecl, external --> +<!-- $Revision: 1.6.2.2 $ --> <reference xml:id="ref.ssh2" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <title>Secure Shell2 Functions</title> + <title>Secure Shell2 &Functions;</title> <titleabbrev>ssh2</titleabbrev> - <partintro> - <section xml:id="ssh2.intro"> - &reftitle.intro; - <para> - Bindings to the <link xlink:href="&url.libssh2;">libssh2</link> library which - provide access to resources (shell, remote exec, tunneling, file transfer) - on a remote machine using a secure cryptographic transport. - </para> - </section> - - &reference.ssh2.installation; - - &reference.ssh2.constants; - - </partintro> &reference.ssh2.functions.entities; </reference> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/svn/constants.xml?r1=1.3&r2=1.3.2.1&diff_format=u Index: phpdoc/en/reference/svn/constants.xml diff -u phpdoc/en/reference/svn/constants.xml:1.3 phpdoc/en/reference/svn/constants.xml:1.3.2.1 --- phpdoc/en/reference/svn/constants.xml:1.3 Thu Jun 21 13:15:25 2007 +++ phpdoc/en/reference/svn/constants.xml Sat Dec 8 16:58:30 2007 @@ -1,6 +1,6 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.3 $ --> -<section xml:id="svn.constants" xmlns="http://docbook.org/ns/docbook"> +<!-- $Revision: 1.3.2.1 $ --> +<appendix xml:id="svn.constants" xmlns="http://docbook.org/ns/docbook"> &reftitle.constants; &extension.constants; <variablelist> @@ -395,7 +395,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/svn/reference.xml?r1=1.2.2.1&r2=1.2.2.2&diff_format=u Index: phpdoc/en/reference/svn/reference.xml diff -u phpdoc/en/reference/svn/reference.xml:1.2.2.1 phpdoc/en/reference/svn/reference.xml:1.2.2.2 --- phpdoc/en/reference/svn/reference.xml:1.2.2.1 Wed Oct 3 11:41:16 2007 +++ phpdoc/en/reference/svn/reference.xml Sat Dec 8 16:58:30 2007 @@ -1,46 +1,12 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2.2.1 $ --> -<!-- Purpose: remote.other --> -<!-- Membership: bundled, pecl --> -<!-- State: new --> +<!-- $Revision: 1.2.2.2 $ --> + <reference xml:id="ref.svn" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>Subversion &Functions;</title> <titleabbrev>SVN</titleabbrev> - <partintro> - <section xml:id="svn.intro"> - &reftitle.intro; - &warn.experimental; - <para> - This extension implements PHP bindings for - <link xlink:href="&url.svn;">Subversion</link> (SVN), a version - control system, allowing PHP scripts to communicate with SVN repositories - and working copies without direct command line calls to the - <filename>svn</filename> - executable. - </para> - </section> - <section xml:id="svn.requirements"> - &reftitle.required; - <para> - The Subversion binaries are not necessary to use this - extension. However, when compiling the extension, libsvn - (the Subversion headers) must be available. - </para> - </section> - &reference.svn.configure; - <section xml:id="svn.resources"> - &reftitle.resources; - <para> - Subversion's lower-level svn_fs_* functions make use of resources - that reference local file-system repositories. They can probably be - created using <function>svn_repos_fs</function> and - <function>svn_fs_revision_root</function>. (verify?) - </para> - &no.resource; - </section> - &reference.svn.constants; - </partintro> + &reference.svn.functions.entities; + </reference> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/tcpwrap/reference.xml?r1=1.4.2.1&r2=1.4.2.2&diff_format=u Index: phpdoc/en/reference/tcpwrap/reference.xml diff -u phpdoc/en/reference/tcpwrap/reference.xml:1.4.2.1 phpdoc/en/reference/tcpwrap/reference.xml:1.4.2.2 --- phpdoc/en/reference/tcpwrap/reference.xml:1.4.2.1 Wed Oct 3 11:41:16 2007 +++ phpdoc/en/reference/tcpwrap/reference.xml Sat Dec 8 16:58:30 2007 @@ -1,27 +1,11 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.4.2.1 $ --> -<!-- Purpose: remote.other --> -<!-- Membership: pecl --> +<!-- $Revision: 1.4.2.2 $ --> - <reference xml:id="ref.tcpwrap" xmlns="http://docbook.org/ns/docbook"> - <title>TCP Wrappers Functions</title> - <titleabbrev>TCP Wrappers</titleabbrev> +<reference xml:id="ref.tcpwrap" xmlns="http://docbook.org/ns/docbook"> + <title>TCP Wrappers &Functions;</title> - <partintro> - <section xml:id="tcpwrap.intro"> - &reftitle.intro; - <para> - The TCP wrappers provides a classical Unix mechanism which has been - designed to check if the remote client is able to connect from the given IP - address. - </para> - </section> - - &reference.tcpwrap.configure; - - </partintro> &reference.tcpwrap.functions.entities; - </reference> +</reference> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/yaz/reference.xml?r1=1.21.2.2&r2=1.21.2.3&diff_format=u Index: phpdoc/en/reference/yaz/reference.xml diff -u phpdoc/en/reference/yaz/reference.xml:1.21.2.2 phpdoc/en/reference/yaz/reference.xml:1.21.2.3 --- phpdoc/en/reference/yaz/reference.xml:1.21.2.2 Fri Nov 2 12:13:28 2007 +++ phpdoc/en/reference/yaz/reference.xml Sat Dec 8 16:58:30 2007 @@ -1,137 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.21.2.2 $ --> -<!-- Purpose: remote.other --> -<!-- Membership: pecl, external --> +<!-- $Revision: 1.21.2.3 $ --> - <reference xml:id="ref.yaz" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <title>YAZ Functions</title> - <titleabbrev>YAZ</titleabbrev> - - <partintro> - <section xml:id="yaz.intro"> - &reftitle.intro; - <para> - This extension offers a PHP interface to the - <productname>YAZ</productname> toolkit that implements the - <link xlink:href="&url.yaz-loc;">Z39.50 - Protocol for Information Retrieval</link>. - With this extension you can easily implement a Z39.50 origin (client) - that searches or scans Z39.50 targets (servers) in parallel. - </para> - <para> - The module hides most of the complexity of Z39.50 so it should be - fairly easy to use. It supports persistent stateless connections very - similar to those offered by the various RDB APIs that are available - for PHP. This means that sessions are stateless but shared among - users, thus saving the connect and initialize phase steps in most - cases. - </para> - <para> - <productname>YAZ</productname> is available at <link - xlink:href="&url.yaz;">&url.yaz;</link>. You can find news information, - example scripts, etc. for this extension at <link - xlink:href="&url.yaz-phpyaz;">&url.yaz-phpyaz;</link>. - </para> - <note> - <para> - &pecl.moved-ver;5.0.0. - </para> - </note> - </section> - - &reference.yaz.configure; - - &reference.yaz.ini; - - <section xml:id="yaz.resources"> - &reftitle.resources; - &no.resource; - </section> - - <section xml:id="yaz.constants"> - &reftitle.constants; - &no.constants; - </section> - - <section xml:id="yaz.examples"> - &reftitle.examples; - <para> - PHP/YAZ keeps track of connections with targets - (Z-Associations). A resource represents a connection to a - target. - </para> - <para> - The script below demonstrates the parallel searching feature of - the API. When invoked with no arguments it prints a query form; else - (arguments are supplied) it searches the targets as given in array - <literal>host</literal>. - </para> - <para> - <example> - <title>Parallel searching using Yaz</title> - <programlisting role="php"> -<![CDATA[ -<?php -$host=$_REQUEST[host]; -$query=$_REQUEST[query]; -$num_hosts = count($host); -if (empty($query) || count($host) == 0) { - echo '<form method="get"> - <input type="checkbox" - name="host[]" value="bagel.indexdata.dk/gils" /> - GILS test - <input type="checkbox" - name="host[]" value="localhost:9999/Default" /> - local test - <input type="checkbox" checked="checked" - name="host[]" value="z3950.loc.gov:7090/voyager" /> - Library of Congress - <br /> - RPN Query: - <input type="text" size="30" name="query" /> - <input type="submit" name="action" value="Search" /> - </form> - '; -} else { - echo 'You searched for ' . htmlspecialchars($query) . '<br />'; - for ($i = 0; $i < $num_hosts; $i++) { - $id[] = yaz_connect($host[$i]); - yaz_syntax($id[$i], "usmarc"); - yaz_range($id[$i], 1, 10); - yaz_search($id[$i], "rpn", $query); - } - yaz_wait(); - for ($i = 0; $i < $num_hosts; $i++) { - echo '<hr />' . $host[$i] . ':'; - $error = yaz_error($id[$i]); - if (!empty($error)) { - echo "Error: $error"; - } else { - $hits = yaz_hits($id[$i]); - echo "Result Count $hits"; - } - echo '<dl>'; - for ($p = 1; $p <= 10; $p++) { - $rec = yaz_record($id[$i], $p, "string"); - if (empty($rec)) continue; - echo "<dt><b>$p</b></dt><dd>"; - echo nl2br($rec); - echo "</dd>"; - } - echo '</dl>'; - } -} -?> -]]> - </programlisting> - </example> - </para> - </section> - </partintro> +<reference xml:id="ref.yaz" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <title>YAZ &Functions;</title> &reference.yaz.functions.entities; - </reference> +</reference> + <!-- Keep this comment at the end of the file Local variables: mode: sgml @@ -152,3 +28,4 @@ vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/nis/constants.xml?r1=1.5&r2=1.5.2.1&diff_format=u Index: phpdoc/en/reference/nis/constants.xml diff -u phpdoc/en/reference/nis/constants.xml:1.5 phpdoc/en/reference/nis/constants.xml:1.5.2.1 --- phpdoc/en/reference/nis/constants.xml:1.5 Wed Jun 20 22:25:05 2007 +++ phpdoc/en/reference/nis/constants.xml Sat Dec 8 16:58:30 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<section xml:id="nis.constants" xmlns="http://docbook.org/ns/docbook"> +<!-- $Revision: 1.5.2.1 $ --> +<appendix xml:id="nis.constants" xmlns="http://docbook.org/ns/docbook"> &reftitle.constants; &extension.constants; <variablelist> @@ -181,7 +181,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/nis/reference.xml?r1=1.10.2.1&r2=1.10.2.2&diff_format=u Index: phpdoc/en/reference/nis/reference.xml diff -u phpdoc/en/reference/nis/reference.xml:1.10.2.1 phpdoc/en/reference/nis/reference.xml:1.10.2.2 --- phpdoc/en/reference/nis/reference.xml:1.10.2.1 Wed Oct 3 11:41:13 2007 +++ phpdoc/en/reference/nis/reference.xml Sat Dec 8 16:58:30 2007 @@ -1,54 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.10.2.1 $ --> -<!-- Purpose: remote.other --> -<!-- Membership: pecl --> +<!-- $Revision: 1.10.2.2 $ --> - <reference xml:id="ref.nis" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <title>YP/NIS Functions</title> - <titleabbrev>YP/NIS</titleabbrev> +<reference xml:id="ref.nis" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <title>YP/NIS &Functions;</title> - <partintro> + &reference.nis.functions.entities; - <section xml:id="nis.intro"> - &reftitle.intro; - <para> - NIS (formerly called Yellow Pages) allows network management of - important administrative files (e.g. the password file). For more - information refer to the NIS manpage and <link xlink:href="&url.nis;"> - The Linux NIS(YP)/NYS/NIS+ HOWTO</link>. There is also a book called <link - xlink:href="&url.nis.book;">Managing NFS and NIS</link> by Hal Stern. - </para> - <note> - <para> - &pecl.moved-ver;5.1.0. - </para> - </note> - ¬e.no-windows.extension; - </section> - - <section xml:id="nis.requirements"> - &reftitle.required; - <para> - None besides functions from standard Unix libraries which are - always available (either <filename>libc</filename> or - <filename>libnsl</filename>, configure will detect which one to use). - </para> - </section> - - &reference.nis.configure; +</reference> - <section xml:id="nis.configuration"> - &reftitle.runtime; - &no.config; - </section> - - &reference.nis.constants; - - </partintro> - -&reference.nis.functions.entities; - - </reference> <!-- Keep this comment at the end of the file Local variables: mode: sgml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/snmp/constants.xml?r1=1.3&r2=1.3.2.1&diff_format=u Index: phpdoc/en/reference/snmp/constants.xml diff -u phpdoc/en/reference/snmp/constants.xml:1.3 phpdoc/en/reference/snmp/constants.xml:1.3.2.1 --- phpdoc/en/reference/snmp/constants.xml:1.3 Wed Jun 20 22:25:24 2007 +++ phpdoc/en/reference/snmp/constants.xml Sat Dec 8 16:58:30 2007 @@ -1,6 +1,6 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.3 $ --> -<section xml:id="snmp.constants" xmlns="http://docbook.org/ns/docbook"> +<!-- $Revision: 1.3.2.1 $ --> +<appendix xml:id="snmp.constants" xmlns="http://docbook.org/ns/docbook"> &reftitle.constants; &extension.constants; <variablelist> @@ -192,7 +192,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/snmp/reference.xml?r1=1.12.2.1&r2=1.12.2.2&diff_format=u Index: phpdoc/en/reference/snmp/reference.xml diff -u phpdoc/en/reference/snmp/reference.xml:1.12.2.1 phpdoc/en/reference/snmp/reference.xml:1.12.2.2 --- phpdoc/en/reference/snmp/reference.xml:1.12.2.1 Wed Oct 3 11:41:15 2007 +++ phpdoc/en/reference/snmp/reference.xml Sat Dec 8 16:58:30 2007 @@ -1,48 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.12.2.1 $ --> -<!-- Purpose: remote.other --> -<!-- Membership: bundled, external --> +<!-- $Revision: 1.12.2.2 $ --> - <reference xml:id="ref.snmp" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <title>SNMP Functions</title> - <titleabbrev>SNMP</titleabbrev> - - <partintro> - <section xml:id="snmp.intro"> - &reftitle.intro; - <para> - </para> - </section> - - <section xml:id="snmp.requirements"> - &reftitle.required; - <para> - In order to use the SNMP functions on Unix you need to install the - <link xlink:href="&url.net-snmp;">NET-SNMP</link> package. On Windows these - functions are only available on NT and not on Win95/98. - </para> - </section> - - &reference.snmp.configure; - - <section xml:id="snmp.configuration"> - &reftitle.runtime; - &no.config; - </section> - - <section xml:id="snmp.resources"> - &reftitle.resources; - <para> - </para> - </section> - - &reference.snmp.constants; - - </partintro> +<reference xml:id="ref.snmp" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <title>SNMP &Functions;</title> -&reference.snmp.functions.entities; + &reference.snmp.functions.entities; + +</reference> - </reference> <!-- Keep this comment at the end of the file Local variables: mode: sgml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/curl/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/curl/book.xml +++ phpdoc/en/reference/curl/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/curl/examples.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/curl/examples.xml +++ phpdoc/en/reference/curl/examples.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/curl/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/curl/setup.xml +++ phpdoc/en/reference/curl/setup.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/fam/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/fam/book.xml +++ phpdoc/en/reference/fam/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/fam/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/fam/setup.xml +++ phpdoc/en/reference/fam/setup.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ftp/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/ftp/book.xml +++ phpdoc/en/reference/ftp/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ftp/examples.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/ftp/examples.xml +++ phpdoc/en/reference/ftp/examples.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ftp/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/ftp/setup.xml +++ phpdoc/en/reference/ftp/setup.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/net_gopher/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/net_gopher/book.xml +++ phpdoc/en/reference/net_gopher/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/net_gopher/examples.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/net_gopher/examples.xml +++ phpdoc/en/reference/net_gopher/examples.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/net_gopher/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/net_gopher/setup.xml +++ phpdoc/en/reference/net_gopher/setup.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/hw/apache.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/hw/apache.xml +++ phpdoc/en/reference/hw/apache.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/hw/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/hw/book.xml +++ phpdoc/en/reference/hw/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/hw/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/hw/setup.xml +++ phpdoc/en/reference/hw/setup.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/hwapi/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/hwapi/book.xml +++ phpdoc/en/reference/hwapi/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/hwapi/constants.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/hwapi/constants.xml +++ phpdoc/en/reference/hwapi/constants.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/hwapi/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/hwapi/setup.xml +++ phpdoc/en/reference/hwapi/setup.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/http/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/http/book.xml +++ phpdoc/en/reference/http/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/http/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/http/setup.xml +++ phpdoc/en/reference/http/setup.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ircg/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/ircg/book.xml +++ phpdoc/en/reference/ircg/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ircg/constants.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/ircg/constants.xml +++ phpdoc/en/reference/ircg/constants.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ircg/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/ircg/setup.xml +++ phpdoc/en/reference/ircg/setup.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/java/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/java/book.xml +++ phpdoc/en/reference/java/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/java/constants.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/java/constants.xml +++ phpdoc/en/reference/java/constants.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/java/examples.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/java/examples.xml +++ phpdoc/en/reference/java/examples.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/java/servlet.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/java/servlet.xml +++ phpdoc/en/reference/java/servlet.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/java/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/java/setup.xml +++ phpdoc/en/reference/java/setup.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ldap/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/ldap/book.xml +++ phpdoc/en/reference/ldap/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ldap/examples.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/ldap/examples.xml +++ phpdoc/en/reference/ldap/examples.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ldap/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/ldap/setup.xml +++ phpdoc/en/reference/ldap/setup.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ldap/using.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/ldap/using.xml +++ phpdoc/en/reference/ldap/using.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/memcache/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/memcache/book.xml +++ phpdoc/en/reference/memcache/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/memcache/examples.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/memcache/examples.xml +++ phpdoc/en/reference/memcache/examples.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/memcache/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/memcache/setup.xml +++ phpdoc/en/reference/memcache/setup.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/mnogosearch/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/mnogosearch/book.xml +++ phpdoc/en/reference/mnogosearch/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/mnogosearch/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/mnogosearch/setup.xml +++ phpdoc/en/reference/mnogosearch/setup.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/network/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/network/book.xml +++ phpdoc/en/reference/network/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/network/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/network/setup.xml +++ phpdoc/en/reference/network/setup.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/notes/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/notes/book.xml +++ phpdoc/en/reference/notes/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/notes/constants.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/notes/constants.xml +++ phpdoc/en/reference/notes/constants.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/notes/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/notes/setup.xml +++ phpdoc/en/reference/notes/setup.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/sam/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/sam/book.xml +++ phpdoc/en/reference/sam/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/sam/examples.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/sam/examples.xml +++ phpdoc/en/reference/sam/examples.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/sam/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/sam/setup.xml +++ phpdoc/en/reference/sam/setup.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/sockets/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/sockets/book.xml +++ phpdoc/en/reference/sockets/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/sockets/errors.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/sockets/errors.xml +++ phpdoc/en/reference/sockets/errors.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/sockets/examples.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/sockets/examples.xml +++ phpdoc/en/reference/sockets/examples.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/sockets/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/sockets/setup.xml +++ phpdoc/en/reference/sockets/setup.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ssh2/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/ssh2/book.xml +++ phpdoc/en/reference/ssh2/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ssh2/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/ssh2/setup.xml +++ phpdoc/en/reference/ssh2/setup.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/svn/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/svn/book.xml +++ phpdoc/en/reference/svn/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/svn/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/svn/setup.xml +++ phpdoc/en/reference/svn/setup.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/tcpwrap/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/tcpwrap/book.xml +++ phpdoc/en/reference/tcpwrap/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/tcpwrap/constants.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/tcpwrap/constants.xml +++ phpdoc/en/reference/tcpwrap/constants.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/tcpwrap/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/tcpwrap/setup.xml +++ phpdoc/en/reference/tcpwrap/setup.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/yaz/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/yaz/book.xml +++ phpdoc/en/reference/yaz/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/yaz/constants.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/yaz/constants.xml +++ phpdoc/en/reference/yaz/constants.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/yaz/examples.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/yaz/examples.xml +++ phpdoc/en/reference/yaz/examples.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/yaz/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/yaz/setup.xml +++ phpdoc/en/reference/yaz/setup.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/nis/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/nis/book.xml +++ phpdoc/en/reference/nis/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/nis/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/nis/setup.xml +++ phpdoc/en/reference/nis/setup.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/snmp/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/snmp/book.xml +++ phpdoc/en/reference/snmp/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/snmp/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/snmp/setup.xml +++ phpdoc/en/reference/snmp/setup.xml