cvs: phpdoc /en/reference/win32service book.xml constants.xml examples.xml reference.xml setup.xml
| From: | Philip Olson | Date: | Fri, 14 Dec 2007 03:30:34 +0000 |
| Subject: | cvs: phpdoc /en/reference/win32service book.xml constants.xml examples.xml reference.xml setup.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-641@lists.php.net to get a copy of this message | ||
philip Fri Dec 14 03:30:34 2007 UTC
Modified files:
/phpdoc/en/reference/win32service book.xml setup.xml examples.xml
constants.xml reference.xml
Log:
MFB: Upgrade to the new-reference-structure
- Split reference.xml into book.xml and setup.xml
- Moved from reference.xml to book.xml:
- The intro text (partintro), and link to constants and the new examples page
- Moved from reference.xml to setup.xml:
- The rest: requirements, installation, configuration, and resources
- Changed the constants section to be an <appendix>
- Changed the intro ID from <extname>.intro to intro.<extname>
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/win32service/book.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/win32service/book.xml diff -u /dev/null phpdoc/en/reference/win32service/book.xml:1.2 --- /dev/null Fri Dec 14 03:30:34 2007 +++ phpdoc/en/reference/win32service/book.xml Fri Dec 14 03:30:33 2007 @@ -0,0 +1,48 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.2 $ --> +<!-- Purpose: utilspec.windows --> +<!-- Membership: pecl --> + +<book xml:id="book.win32service" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <title>win32service</title> + + <!-- {{{ preface --> + <preface xml:id="intro.win32service"> + &reftitle.intro; + <para> + The win32service extension is a Windows specific extension that allows PHP + to communicate with the Service Control Manager to start, stop, register + and unregister services, and even allows your PHP scripts to run as a + service. + </para> + </preface> + <!-- }}} --> + + &reference.win32service.setup; + &reference.win32service.constants; + &reference.win32service.examples; + &reference.win32service.reference; + +</book> + +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-quote-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"../../../manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +--> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/win32service/setup.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/win32service/setup.xml diff -u /dev/null phpdoc/en/reference/win32service/setup.xml:1.2 --- /dev/null Fri Dec 14 03:30:34 2007 +++ phpdoc/en/reference/win32service/setup.xml Fri Dec 14 03:30:33 2007 @@ -0,0 +1,84 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.2 $ --> + +<chapter xml:id="win32service.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + &reftitle.setup; + + <!-- {{{ Requirements --> + <section xml:id="win32service.requirements"> + &reftitle.required; + <para> + Windows NT, Windows 2000, Windows XP or Windows Server 2003. Any version + of Windows derived from Windows NT should be compatible. + </para> + </section> + <!-- }}} --> + + <!-- {{{ Installation --> + <section xml:id="win32service.installation"> + &reftitle.install; + <procedure xml:id="win32service.install-from-pecl"> + <title>Installing from PECL</title> + <step> + <para> + You can download php_win32service.dll from http://snaps.php.net/win32/. + Choose the PECL_X_X folder that matches you PHP version. + </para> + </step> + <step> + <para> + Copy the php_win32service.dll into your <link + linkend="ini.extension-dir">extension_dir</link>. + </para> + </step> + <step> + <para> + Load the extension from your &php.ini; + <screen> +<![CDATA[ +extension=php_win32service.dll +]]> + </screen> + </para> + </step> + </procedure> + </section> + <!-- }}} --> + + <!-- {{{ Configuration --> + <section xml:id="win32service.configuration"> + &reftitle.runtime; + &no.config; + </section> + <!-- }}} --> + + <!-- {{{ Resources --> + <section xml:id="win32service.resources"> + &reftitle.resources; + &no.resource; + </section> + <!-- }}} --> + +</chapter> + +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-quote-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"../../../manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +--> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/win32service/examples.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/win32service/examples.xml diff -u /dev/null phpdoc/en/reference/win32service/examples.xml:1.2 --- /dev/null Fri Dec 14 03:30:34 2007 +++ phpdoc/en/reference/win32service/examples.xml Fri Dec 14 03:30:33 2007 @@ -0,0 +1,78 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.2 $ --> + +<chapter xml:id="win32service.examples" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + &reftitle.examples; + <section xml:id="win32service.examples-service"> + <para> + <example> + <title>Registering a PHP script to run as a service</title> + <programlisting role='php'> +<![CDATA[ +<?php +win32_create_service(array( + 'service' => 'dummyphp', # the name of your service + 'display' => 'sample dummy PHP service', # description + 'params' => 'c:\path\to\script.php run', # path to the script and parameters +)); +?> +]]> + </programlisting> + </example> + </para> + <para> + <example> + <title>Unregistering a service</title> + <programlisting role='php'> +<![CDATA[ +<?php +win32_delete_service('dummyphp'); +?> +]]> + </programlisting> + </example> + </para> + <para> + <example> + <title>Running as a service</title> + <programlisting role='php'> +<![CDATA[ +<?php +if ($argv[1] == 'run') { + win32_start_service_ctrl_dispatcher('dummyphp'); + + while (WIN32_SERVICE_CONTROL_STOP != win32_get_last_control_message()) { + # do your work here. + # try not to take up more than 30 seconds before going around the loop + # again + } +} +?> +]]> + </programlisting> + </example> + </para> + </section> +</chapter> + +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-quote-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"../../../manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +--> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/win32service/constants.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc/en/reference/win32service/constants.xml diff -u phpdoc/en/reference/win32service/constants.xml:1.2 phpdoc/en/reference/win32service/constants.xml:1.3 --- phpdoc/en/reference/win32service/constants.xml:1.2 Wed Jun 20 22:25:36 2007 +++ phpdoc/en/reference/win32service/constants.xml Fri Dec 14 03:30:33 2007 @@ -1,7 +1,7 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- Generated by xml_proto.php v2.3. Found in /scripts directory of phpdoc. --> -<section xml:id="win32service.constants" xmlns="http://docbook.org/ns/docbook"> +<appendix xml:id="win32service.constants" xmlns="http://docbook.org/ns/docbook"> &reftitle.constants; &extension.constants; <variablelist> @@ -420,7 +420,7 @@ </variablelist> -</section> +</appendix> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/win32service/reference.xml?r1=1.8&r2=1.9&diff_format=u Index: phpdoc/en/reference/win32service/reference.xml diff -u phpdoc/en/reference/win32service/reference.xml:1.8 phpdoc/en/reference/win32service/reference.xml:1.9 --- phpdoc/en/reference/win32service/reference.xml:1.8 Mon Dec 10 17:06:10 2007 +++ phpdoc/en/reference/win32service/reference.xml Fri Dec 14 03:30:34 2007 @@ -1,113 +1,11 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> -<!-- Purpose: utilspec.windows --> -<!-- Membership: pecl --> +<!-- $Revision: 1.9 $ --> <reference xml:id="ref.win32service" xmlns="http://docbook.org/ns/docbook"> - <title>win32service Functions</title> - <titleabbrev>win32service</titleabbrev> + <title>win32service &Functions;</title> - <partintro> - <section xml:id="win32service.intro"> - &reftitle.intro; - <para> - The win32service extension is a Windows specific extension that allows PHP - to communicate with the Service Control Manager to start, stop, register - and unregister services, and even allows your PHP scripts to run as a - service. - </para> - </section> - <section xml:id="win32service.requirements"> - &reftitle.required; - <para> - Windows NT, Windows 2000, Windows XP or Windows Server 2003. Any version - of Windows derived from Windows NT should be compatible. - </para> - </section> - <section xml:id="win32service.install"> - &reftitle.install; - <procedure xml:id="win32service.install-from-pecl"> - <title>Installing from PECL</title> - <step> - <para> - You can download php_win32service.dll from http://snaps.php.net/win32/. - Choose the PECL_X_X folder that matches you PHP version. - </para> - </step> - <step> - <para> - Copy the php_win32service.dll into your <link - linkend="ini.extension-dir">extension_dir</link>. - </para> - </step> - <step> - <para> - Load the extension from your &php.ini; - <screen> -<![CDATA[ -extension=php_win32service.dll -]]> - </screen> - </para> - </step> - </procedure> - </section> - - <section xml:id="win32service.examples"> - &reftitle.examples; - <para> - <example> - <title>Registering a PHP script to run as a service</title> - <programlisting role='php'> -<![CDATA[ -<?php -win32_create_service(array( - 'service' => 'dummyphp', # the name of your service - 'display' => 'sample dummy PHP service', # description - 'params' => 'c:\path\to\script.php run', # path to the script and parameters - )); -?> -]]> - </programlisting> - </example> - </para> - <para> - <example> - <title>Unregistering a service</title> - <programlisting role='php'> -<![CDATA[ -<?php -win32_delete_service('dummyphp'); -?> -]]> - </programlisting> - </example> - </para> - <para> - <example> - <title>Running as a service</title> - <programlisting role='php'> -<![CDATA[ -<?php -if ($argv[1] == 'run') { - win32_start_service_ctrl_dispatcher('dummyphp'); - - while (WIN32_SERVICE_CONTROL_STOP != win32_get_last_control_message()) { - # do your work here. - # try not to take up more than 30 seconds before going around the loop - # again - } -} -?> -]]> - </programlisting> - </example> - </para> - </section> - - &reference.win32service.constants; - </partintro> &reference.win32service.entities.functions; + </reference> <!-- Keep this comment at the end of the file
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/win32service/book.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/win32service/book.xml diff -u /dev/null phpdoc/en/reference/win32service/book.xml:1.2 --- /dev/null Fri Dec 14 03:30:34 2007 +++ phpdoc/en/reference/win32service/book.xml Fri Dec 14 03:30:33 2007 @@ -0,0 +1,48 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.2 $ --> +<!-- Purpose: utilspec.windows --> +<!-- Membership: pecl --> + +<book xml:id="book.win32service" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <title>win32service</title> + + <!-- {{{ preface --> + <preface xml:id="intro.win32service"> + &reftitle.intro; + <para> + The win32service extension is a Windows specific extension that allows PHP + to communicate with the Service Control Manager to start, stop, register + and unregister services, and even allows your PHP scripts to run as a + service. + </para> + </preface> + <!-- }}} --> + + &reference.win32service.setup; + &reference.win32service.constants; + &reference.win32service.examples; + &reference.win32service.reference; + +</book> + +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-quote-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"../../../manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +--> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/win32service/setup.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/win32service/setup.xml diff -u /dev/null phpdoc/en/reference/win32service/setup.xml:1.2 --- /dev/null Fri Dec 14 03:30:34 2007 +++ phpdoc/en/reference/win32service/setup.xml Fri Dec 14 03:30:33 2007 @@ -0,0 +1,84 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.2 $ --> + +<chapter xml:id="win32service.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + &reftitle.setup; + + <!-- {{{ Requirements --> + <section xml:id="win32service.requirements"> + &reftitle.required; + <para> + Windows NT, Windows 2000, Windows XP or Windows Server 2003. Any version + of Windows derived from Windows NT should be compatible. + </para> + </section> + <!-- }}} --> + + <!-- {{{ Installation --> + <section xml:id="win32service.installation"> + &reftitle.install; + <procedure xml:id="win32service.install-from-pecl"> + <title>Installing from PECL</title> + <step> + <para> + You can download php_win32service.dll from http://snaps.php.net/win32/. + Choose the PECL_X_X folder that matches you PHP version. + </para> + </step> + <step> + <para> + Copy the php_win32service.dll into your <link + linkend="ini.extension-dir">extension_dir</link>. + </para> + </step> + <step> + <para> + Load the extension from your &php.ini; + <screen> +<![CDATA[ +extension=php_win32service.dll +]]> + </screen> + </para> + </step> + </procedure> + </section> + <!-- }}} --> + + <!-- {{{ Configuration --> + <section xml:id="win32service.configuration"> + &reftitle.runtime; + &no.config; + </section> + <!-- }}} --> + + <!-- {{{ Resources --> + <section xml:id="win32service.resources"> + &reftitle.resources; + &no.resource; + </section> + <!-- }}} --> + +</chapter> + +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-quote-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"../../../manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +--> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/win32service/examples.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/win32service/examples.xml diff -u /dev/null phpdoc/en/reference/win32service/examples.xml:1.2 --- /dev/null Fri Dec 14 03:30:34 2007 +++ phpdoc/en/reference/win32service/examples.xml Fri Dec 14 03:30:33 2007 @@ -0,0 +1,78 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.2 $ --> + +<chapter xml:id="win32service.examples" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + &reftitle.examples; + <section xml:id="win32service.examples-service"> + <para> + <example> + <title>Registering a PHP script to run as a service</title> + <programlisting role='php'> +<![CDATA[ +<?php +win32_create_service(array( + 'service' => 'dummyphp', # the name of your service + 'display' => 'sample dummy PHP service', # description + 'params' => 'c:\path\to\script.php run', # path to the script and parameters +)); +?> +]]> + </programlisting> + </example> + </para> + <para> + <example> + <title>Unregistering a service</title> + <programlisting role='php'> +<![CDATA[ +<?php +win32_delete_service('dummyphp'); +?> +]]> + </programlisting> + </example> + </para> + <para> + <example> + <title>Running as a service</title> + <programlisting role='php'> +<![CDATA[ +<?php +if ($argv[1] == 'run') { + win32_start_service_ctrl_dispatcher('dummyphp'); + + while (WIN32_SERVICE_CONTROL_STOP != win32_get_last_control_message()) { + # do your work here. + # try not to take up more than 30 seconds before going around the loop + # again + } +} +?> +]]> + </programlisting> + </example> + </para> + </section> +</chapter> + +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-quote-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"../../../manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +--> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/win32service/constants.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc/en/reference/win32service/constants.xml diff -u phpdoc/en/reference/win32service/constants.xml:1.2 phpdoc/en/reference/win32service/constants.xml:1.3 --- phpdoc/en/reference/win32service/constants.xml:1.2 Wed Jun 20 22:25:36 2007 +++ phpdoc/en/reference/win32service/constants.xml Fri Dec 14 03:30:33 2007 @@ -1,7 +1,7 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- Generated by xml_proto.php v2.3. Found in /scripts directory of phpdoc. --> -<section xml:id="win32service.constants" xmlns="http://docbook.org/ns/docbook"> +<appendix xml:id="win32service.constants" xmlns="http://docbook.org/ns/docbook"> &reftitle.constants; &extension.constants; <variablelist> @@ -420,7 +420,7 @@ </variablelist> -</section> +</appendix> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/win32service/reference.xml?r1=1.8&r2=1.9&diff_format=u Index: phpdoc/en/reference/win32service/reference.xml diff -u phpdoc/en/reference/win32service/reference.xml:1.8 phpdoc/en/reference/win32service/reference.xml:1.9 --- phpdoc/en/reference/win32service/reference.xml:1.8 Mon Dec 10 17:06:10 2007 +++ phpdoc/en/reference/win32service/reference.xml Fri Dec 14 03:30:34 2007 @@ -1,113 +1,11 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> -<!-- Purpose: utilspec.windows --> -<!-- Membership: pecl --> +<!-- $Revision: 1.9 $ --> <reference xml:id="ref.win32service" xmlns="http://docbook.org/ns/docbook"> - <title>win32service Functions</title> - <titleabbrev>win32service</titleabbrev> + <title>win32service &Functions;</title> - <partintro> - <section xml:id="win32service.intro"> - &reftitle.intro; - <para> - The win32service extension is a Windows specific extension that allows PHP - to communicate with the Service Control Manager to start, stop, register - and unregister services, and even allows your PHP scripts to run as a - service. - </para> - </section> - <section xml:id="win32service.requirements"> - &reftitle.required; - <para> - Windows NT, Windows 2000, Windows XP or Windows Server 2003. Any version - of Windows derived from Windows NT should be compatible. - </para> - </section> - <section xml:id="win32service.install"> - &reftitle.install; - <procedure xml:id="win32service.install-from-pecl"> - <title>Installing from PECL</title> - <step> - <para> - You can download php_win32service.dll from http://snaps.php.net/win32/. - Choose the PECL_X_X folder that matches you PHP version. - </para> - </step> - <step> - <para> - Copy the php_win32service.dll into your <link - linkend="ini.extension-dir">extension_dir</link>. - </para> - </step> - <step> - <para> - Load the extension from your &php.ini; - <screen> -<![CDATA[ -extension=php_win32service.dll -]]> - </screen> - </para> - </step> - </procedure> - </section> - - <section xml:id="win32service.examples"> - &reftitle.examples; - <para> - <example> - <title>Registering a PHP script to run as a service</title> - <programlisting role='php'> -<![CDATA[ -<?php -win32_create_service(array( - 'service' => 'dummyphp', # the name of your service - 'display' => 'sample dummy PHP service', # description - 'params' => 'c:\path\to\script.php run', # path to the script and parameters - )); -?> -]]> - </programlisting> - </example> - </para> - <para> - <example> - <title>Unregistering a service</title> - <programlisting role='php'> -<![CDATA[ -<?php -win32_delete_service('dummyphp'); -?> -]]> - </programlisting> - </example> - </para> - <para> - <example> - <title>Running as a service</title> - <programlisting role='php'> -<![CDATA[ -<?php -if ($argv[1] == 'run') { - win32_start_service_ctrl_dispatcher('dummyphp'); - - while (WIN32_SERVICE_CONTROL_STOP != win32_get_last_control_message()) { - # do your work here. - # try not to take up more than 30 seconds before going around the loop - # again - } -} -?> -]]> - </programlisting> - </example> - </para> - </section> - - &reference.win32service.constants; - </partintro> &reference.win32service.entities.functions; + </reference> <!-- Keep this comment at the end of the file