cvs: phpdoc(REF_STRUCT_DEV) / manual.xml.in /en/reference/printer book.xml constants.xml reference.xml setup.xml /en/reference/w32api book.xml
constants.xml examples.xml reference.xml setup.xml /en/reference/win32ps book.xml constants.xml examples.xml reference.xml setup.xml
/en/reference/win32service book.xml constants.xml examples.xml reference.xml setup.xml
| From: | Hannes Magnusson | Date: | Sat, 08 Dec 2007 23:09:35 +0000 |
| Subject: | cvs: phpdoc(REF_STRUCT_DEV) / manual.xml.in /en/reference/printer book.xml constants.xml reference.xml setup.xml /en/reference/w32api book.xml constants.xml examples.xml reference.xml setup.xml /en/reference/win32ps book.xml constants.xml examples.xml reference.xml setup.xml /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-567@lists.php.net to get a copy of this message | ||
bjori Sat Dec 8 23:09:35 2007 UTC
Added files: (Branch: REF_STRUCT_DEV)
/phpdoc/en/reference/printer book.xml setup.xml
/phpdoc/en/reference/win32service book.xml examples.xml setup.xml
/phpdoc/en/reference/win32ps book.xml constants.xml examples.xml
setup.xml
/phpdoc/en/reference/w32api book.xml examples.xml setup.xml
Modified files:
/phpdoc manual.xml.in
/phpdoc/en/reference/printer constants.xml reference.xml
/phpdoc/en/reference/win32service constants.xml reference.xml
/phpdoc/en/reference/win32ps reference.xml
/phpdoc/en/reference/w32api constants.xml reference.xml
Log:
Upgrade most of refs.utilspec.windows to the new-ref-struct
http://cvs.php.net/viewvc.cgi/phpdoc/manual.xml.in?r1=1.224.2.35&r2=1.224.2.36&diff_format=u Index: phpdoc/manual.xml.in diff -u phpdoc/manual.xml.in:1.224.2.35 phpdoc/manual.xml.in:1.224.2.36 --- phpdoc/manual.xml.in:1.224.2.35 Sat Dec 8 22:38:54 2007 +++ phpdoc/manual.xml.in Sat Dec 8 23:09:35 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.35 $ --> <!-- Last updated to comply to manual.xml.in 1.189 --> +<!-- $Revision: 1.224.2.36 $ --> <!-- 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"> @@ -400,15 +400,17 @@ &reference.readline.book; </set> - <book xml:id="refs.utilspec.windows"> + <set xml:id="refs.utilspec.windows"> <title>Windows Only Extensions</title> - &reference.dotnet.reference; - &reference.com.reference; - &reference.w32api.reference; - &reference.win32ps.reference; - &reference.win32service.reference; - &reference.printer.reference; - </book> + <!-- + &reference.dotnet.book; + &reference.com.book; + --> + &reference.w32api.book; + &reference.win32ps.book; + &reference.win32service.book; + &reference.printer.book; + </set> <set xml:id="refs.utilspec.server"> <title>Server Specific Extensions</title> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/printer/constants.xml?r1=1.2&r2=1.2.2.1&diff_format=u Index: phpdoc/en/reference/printer/constants.xml diff -u phpdoc/en/reference/printer/constants.xml:1.2 phpdoc/en/reference/printer/constants.xml:1.2.2.1 --- phpdoc/en/reference/printer/constants.xml:1.2 Thu Jun 21 00:43:29 2007 +++ phpdoc/en/reference/printer/constants.xml Sat Dec 8 23:09:35 2007 @@ -1,12 +1,6 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<refentry xml:id="printer.constants"> - <refnamediv> - <refname>Constants</refname> - <refpurpose>Printer Predefined Constants</refpurpose> - </refnamediv> - - <refsect1> +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.2.2.1 $ --> +<appendix xml:id="printer.constants"> &reftitle.constants; &extension.constants; <variablelist> @@ -693,8 +687,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/printer/reference.xml?r1=1.13.2.1&r2=1.13.2.2&diff_format=u Index: phpdoc/en/reference/printer/reference.xml diff -u phpdoc/en/reference/printer/reference.xml:1.13.2.1 phpdoc/en/reference/printer/reference.xml:1.13.2.2 --- phpdoc/en/reference/printer/reference.xml:1.13.2.1 Wed Oct 3 11:41:14 2007 +++ phpdoc/en/reference/printer/reference.xml Sat Dec 8 23:09:35 2007 @@ -1,39 +1,8 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.13.2.1 $ --> -<!-- Purpose: utilspec.windows --> -<!-- Membership: pecl --> +<!-- $Revision: 1.13.2.2 $ --> <reference xml:id="ref.printer" xmlns="http://docbook.org/ns/docbook"> - <title>Printer Functions</title> - <titleabbrev>Printer</titleabbrev> - - <partintro> - <section xml:id="printer.intro"> - &reftitle.intro; - <para> - These functions are only available under Windows 9.x, ME, NT4 and - 2000. They have been added in PHP 4.0.4. - </para> - </section> - - &reference.printer.configure; - - &reference.printer.ini; - - <section xml:id="printer.resources"> - &reftitle.resources; - <para> - This extension defines handles to a printer connection, to a brush, to a - font and to a pen. - </para> - </section> - - <section xml:id="printer.constants"> - &reftitle.constants; - <para/> - </section> - - </partintro> + <title>Printer &Functions;</title> &reference.printer.functions.entities; http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/win32service/constants.xml?r1=1.2&r2=1.2.2.1&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.2.2.1 --- phpdoc/en/reference/win32service/constants.xml:1.2 Wed Jun 20 22:25:36 2007 +++ phpdoc/en/reference/win32service/constants.xml Sat Dec 8 23:09:35 2007 @@ -1,7 +1,7 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.2.2.1 $ --> <!-- 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.6.2.2&r2=1.6.2.3&diff_format=u Index: phpdoc/en/reference/win32service/reference.xml diff -u phpdoc/en/reference/win32service/reference.xml:1.6.2.2 phpdoc/en/reference/win32service/reference.xml:1.6.2.3 --- phpdoc/en/reference/win32service/reference.xml:1.6.2.2 Fri Nov 2 12:13:28 2007 +++ phpdoc/en/reference/win32service/reference.xml Sat Dec 8 23:09:35 2007 @@ -1,113 +1,11 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6.2.2 $ --> -<!-- Purpose: utilspec.windows --> -<!-- Membership: pecl --> +<!-- $Revision: 1.6.2.3 $ --> <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.functions.entities; + </reference> <!-- Keep this comment at the end of the file @@ -130,3 +28,4 @@ vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/win32ps/reference.xml?r1=1.3.2.1&r2=1.3.2.2&diff_format=u Index: phpdoc/en/reference/win32ps/reference.xml diff -u phpdoc/en/reference/win32ps/reference.xml:1.3.2.1 phpdoc/en/reference/win32ps/reference.xml:1.3.2.2 --- phpdoc/en/reference/win32ps/reference.xml:1.3.2.1 Wed Oct 3 11:41:16 2007 +++ phpdoc/en/reference/win32ps/reference.xml Sat Dec 8 23:09:35 2007 @@ -1,123 +1,9 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3.2.1 $ --> -<!-- Purpose: utilspec.windows --> -<!-- Membership: pecl --> +<!-- $Revision: 1.3.2.2 $ --> <reference xml:id="ref.win32ps" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <title>win32ps Functions</title> - <titleabbrev>win32ps</titleabbrev> + <title>win32ps &Functions;</title> - <partintro> - <section xml:id="win32ps.intro"> - &reftitle.intro; - <para> - The win32ps extension is a Windows specific extension that allows PHP - retrieve statistics about process and memory utilization. - </para> - </section> - <section xml:id="win32ps.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="win32ps.install"> - &reftitle.install; - <procedure xml:id="win32ps.install-from-pecl"> - <title>Installing from PECL</title> - <step> - <para> - You can download php_win32ps.dll from <link xlink:href="&url.pecl.win;">pecl4win.php.net</link>. - </para> - </step> - <step> - <para> - Copy the php_win32ps.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_win32ps.dll -]]> - </screen> - </para> - </step> - </procedure> - </section> - - <section xml:id="win32ps.examples"> - &reftitle.examples; - <para> - <example> - <title>Statistics about the current PHP process</title> - <programlisting role='php'> -<![CDATA[ -<?php -print_r(win32_ps_stat_proc()); -/* - Array - ( - [pid] => 936 - [exe] => D:\Daten\Source\php-5.1\Debug_TS\php.exe - [mem] => Array - ( - [page_fault_count] => 2062 - [peak_working_set_size] => 8396800 - [working_set_size] => 8396800 - [quota_peak_paged_pool_usage] => 32080 - [quota_paged_pool_usage] => 31876 - [quota_peak_non_paged_pool_usage] => 4240 - [quota_non_paged_pool_usage] => 3888 - [pagefile_usage] => 5865472 - [peak_pagefile_usage] => 5865472 - ) - - [tms] => Array - ( - [created] => 0.093 - [kernel] => 0.015 - [user] => 0.062 - ) - - ) -*/ -?> -]]> - </programlisting> - </example> - </para> - <para> - <example> - <title>Statistics about global memory utilization</title> - <programlisting role='php'> -<![CDATA[ -<?php -print_r(win32_ps_stat_mem()); -/* - Array - ( - [load] => 37 - [unit] => 1024 - [total_phys] => 1048096 - [avail_phys] => 649960 - [total_pagefile] => 2521368 - [avail_pagefile] => 2237940 - [total_virtual] => 2097024 - [avail_virtual] => 2057848 - ) -*/ -?> -]]> - </programlisting> - </example> - </para> - </section> - </partintro> &reference.win32ps.functions.entities; </reference> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/w32api/constants.xml?r1=1.3&r2=1.3.2.1&diff_format=u Index: phpdoc/en/reference/w32api/constants.xml diff -u phpdoc/en/reference/w32api/constants.xml:1.3 phpdoc/en/reference/w32api/constants.xml:1.3.2.1 --- phpdoc/en/reference/w32api/constants.xml:1.3 Wed Jun 20 22:25:35 2007 +++ phpdoc/en/reference/w32api/constants.xml Sat Dec 8 23:09:35 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<section xml:id="w32api.constants" xmlns="http://docbook.org/ns/docbook"> +<!-- $Revision: 1.3.2.1 $ --> +<appendix xml:id="w32api.constants" xmlns="http://docbook.org/ns/docbook"> &reftitle.constants; &extension.constants; <variablelist> @@ -115,7 +115,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/w32api/reference.xml?r1=1.12.2.1&r2=1.12.2.2&diff_format=u Index: phpdoc/en/reference/w32api/reference.xml diff -u phpdoc/en/reference/w32api/reference.xml:1.12.2.1 phpdoc/en/reference/w32api/reference.xml:1.12.2.2 --- phpdoc/en/reference/w32api/reference.xml:1.12.2.1 Wed Oct 3 11:41:16 2007 +++ phpdoc/en/reference/w32api/reference.xml Sat Dec 8 23:09:35 2007 @@ -1,116 +1,8 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.12.2.1 $ --> -<!-- Purpose: utilspec.windows --> -<!-- Membership: pecl --> -<!-- State: experimental --> +<!-- $Revision: 1.12.2.2 $ --> <reference xml:id="ref.w32api" xmlns="http://docbook.org/ns/docbook"> <title>W32api Functions</title> - <titleabbrev>W32api</titleabbrev> - - <partintro> - <section xml:id="w32api.intro"> - &reftitle.intro; - <para> - This extension is a generic extension API to DLLs. This was originally - written to allow access to the Win32 API from PHP, although you can also - access other functions exported via other DLLs. - </para> - <para> - Currently supported types are generic PHP types (strings, booleans, floats, - integers and nulls) and types you define with <function>w32api_deftype</function>. - </para> - <note> - <para> - &pecl.moved-ver;5.1.0. - </para> - </note> - &warn.experimental; - </section> - - <section xml:id="w32api.requirements"> - &reftitle.required; - <para> - This extension will only work on Windows systems. - </para> - </section> - - <section xml:id="w32api.installation"> - &reftitle.install; - &no.install; - </section> - - <section xml:id="w32api.configuration"> - &reftitle.runtime; - &no.config; - </section> - - <section xml:id="w32api.resources"> - &reftitle.resources; - <para> - This extension defines one resource type, used for user defined types. - The name of this resource is <literal>"dynaparm"</literal>. - </para> - </section> - - &reference.w32api.constants; - - <section xml:id="w32api.examples"> - &reftitle.examples; - <para> - This example gets the amount of time the system has been running and - displays it in a message box. - </para> - <example> - <title>Get the uptime and display it in a message box</title> - <programlisting role="php"> -<![CDATA[ -<?php -// Define constants needed, taken from -// Visual Studio/Tools/Winapi/WIN32API.txt -define("MB_OK", 0); - -// Load the extension in -dl("php_w32api.dll"); - -// Register the GetTickCount function from kernel32.dll -w32api_register_function("kernel32.dll", - "GetTickCount", - "long"); - -// Register the MessageBoxA function from User32.dll -w32api_register_function("User32.dll", - "MessageBoxA", - "long"); - -// Get uptime information -$ticks = GetTickCount(); - -// Convert it to a nicely displayable text -$secs = floor($ticks / 1000); -$mins = floor($secs / 60); -$hours = floor($mins / 60); - -$str = sprintf("You have been using your computer for:" . - "\r\n %d Milliseconds, or \r\n %d Seconds" . - "or \r\n %d mins or\r\n %d hours %d mins.", - $ticks, - $secs, - $mins, - $hours, - $mins - ($hours*60)); - -// Display a message box with only an OK button and the uptime text -MessageBoxA(NULL, - $str, - "Uptime Information", - MB_OK); -?> -]]> - </programlisting> - </example> - </section> - </partintro> &reference.w32api.functions.entities; http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/printer/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/printer/book.xml +++ phpdoc/en/reference/printer/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/printer/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/printer/setup.xml +++ phpdoc/en/reference/printer/setup.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/win32service/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/win32service/book.xml +++ phpdoc/en/reference/win32service/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/win32service/examples.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/win32service/examples.xml +++ phpdoc/en/reference/win32service/examples.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/win32service/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/win32service/setup.xml +++ phpdoc/en/reference/win32service/setup.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/win32ps/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/win32ps/book.xml +++ phpdoc/en/reference/win32ps/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/win32ps/constants.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/win32ps/constants.xml +++ phpdoc/en/reference/win32ps/constants.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/win32ps/examples.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/win32ps/examples.xml +++ phpdoc/en/reference/win32ps/examples.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/win32ps/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/win32ps/setup.xml +++ phpdoc/en/reference/win32ps/setup.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/w32api/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/w32api/book.xml +++ phpdoc/en/reference/w32api/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/w32api/examples.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/w32api/examples.xml +++ phpdoc/en/reference/w32api/examples.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/w32api/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/w32api/setup.xml +++ phpdoc/en/reference/w32api/setup.xml
http://cvs.php.net/viewvc.cgi/phpdoc/manual.xml.in?r1=1.224.2.35&r2=1.224.2.36&diff_format=u Index: phpdoc/manual.xml.in diff -u phpdoc/manual.xml.in:1.224.2.35 phpdoc/manual.xml.in:1.224.2.36 --- phpdoc/manual.xml.in:1.224.2.35 Sat Dec 8 22:38:54 2007 +++ phpdoc/manual.xml.in Sat Dec 8 23:09:35 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.35 $ --> <!-- Last updated to comply to manual.xml.in 1.189 --> +<!-- $Revision: 1.224.2.36 $ --> <!-- 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"> @@ -400,15 +400,17 @@ &reference.readline.book; </set> - <book xml:id="refs.utilspec.windows"> + <set xml:id="refs.utilspec.windows"> <title>Windows Only Extensions</title> - &reference.dotnet.reference; - &reference.com.reference; - &reference.w32api.reference; - &reference.win32ps.reference; - &reference.win32service.reference; - &reference.printer.reference; - </book> + <!-- + &reference.dotnet.book; + &reference.com.book; + --> + &reference.w32api.book; + &reference.win32ps.book; + &reference.win32service.book; + &reference.printer.book; + </set> <set xml:id="refs.utilspec.server"> <title>Server Specific Extensions</title> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/printer/constants.xml?r1=1.2&r2=1.2.2.1&diff_format=u Index: phpdoc/en/reference/printer/constants.xml diff -u phpdoc/en/reference/printer/constants.xml:1.2 phpdoc/en/reference/printer/constants.xml:1.2.2.1 --- phpdoc/en/reference/printer/constants.xml:1.2 Thu Jun 21 00:43:29 2007 +++ phpdoc/en/reference/printer/constants.xml Sat Dec 8 23:09:35 2007 @@ -1,12 +1,6 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<refentry xml:id="printer.constants"> - <refnamediv> - <refname>Constants</refname> - <refpurpose>Printer Predefined Constants</refpurpose> - </refnamediv> - - <refsect1> +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.2.2.1 $ --> +<appendix xml:id="printer.constants"> &reftitle.constants; &extension.constants; <variablelist> @@ -693,8 +687,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/printer/reference.xml?r1=1.13.2.1&r2=1.13.2.2&diff_format=u Index: phpdoc/en/reference/printer/reference.xml diff -u phpdoc/en/reference/printer/reference.xml:1.13.2.1 phpdoc/en/reference/printer/reference.xml:1.13.2.2 --- phpdoc/en/reference/printer/reference.xml:1.13.2.1 Wed Oct 3 11:41:14 2007 +++ phpdoc/en/reference/printer/reference.xml Sat Dec 8 23:09:35 2007 @@ -1,39 +1,8 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.13.2.1 $ --> -<!-- Purpose: utilspec.windows --> -<!-- Membership: pecl --> +<!-- $Revision: 1.13.2.2 $ --> <reference xml:id="ref.printer" xmlns="http://docbook.org/ns/docbook"> - <title>Printer Functions</title> - <titleabbrev>Printer</titleabbrev> - - <partintro> - <section xml:id="printer.intro"> - &reftitle.intro; - <para> - These functions are only available under Windows 9.x, ME, NT4 and - 2000. They have been added in PHP 4.0.4. - </para> - </section> - - &reference.printer.configure; - - &reference.printer.ini; - - <section xml:id="printer.resources"> - &reftitle.resources; - <para> - This extension defines handles to a printer connection, to a brush, to a - font and to a pen. - </para> - </section> - - <section xml:id="printer.constants"> - &reftitle.constants; - <para/> - </section> - - </partintro> + <title>Printer &Functions;</title> &reference.printer.functions.entities; http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/win32service/constants.xml?r1=1.2&r2=1.2.2.1&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.2.2.1 --- phpdoc/en/reference/win32service/constants.xml:1.2 Wed Jun 20 22:25:36 2007 +++ phpdoc/en/reference/win32service/constants.xml Sat Dec 8 23:09:35 2007 @@ -1,7 +1,7 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.2.2.1 $ --> <!-- 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.6.2.2&r2=1.6.2.3&diff_format=u Index: phpdoc/en/reference/win32service/reference.xml diff -u phpdoc/en/reference/win32service/reference.xml:1.6.2.2 phpdoc/en/reference/win32service/reference.xml:1.6.2.3 --- phpdoc/en/reference/win32service/reference.xml:1.6.2.2 Fri Nov 2 12:13:28 2007 +++ phpdoc/en/reference/win32service/reference.xml Sat Dec 8 23:09:35 2007 @@ -1,113 +1,11 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6.2.2 $ --> -<!-- Purpose: utilspec.windows --> -<!-- Membership: pecl --> +<!-- $Revision: 1.6.2.3 $ --> <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.functions.entities; + </reference> <!-- Keep this comment at the end of the file @@ -130,3 +28,4 @@ vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/win32ps/reference.xml?r1=1.3.2.1&r2=1.3.2.2&diff_format=u Index: phpdoc/en/reference/win32ps/reference.xml diff -u phpdoc/en/reference/win32ps/reference.xml:1.3.2.1 phpdoc/en/reference/win32ps/reference.xml:1.3.2.2 --- phpdoc/en/reference/win32ps/reference.xml:1.3.2.1 Wed Oct 3 11:41:16 2007 +++ phpdoc/en/reference/win32ps/reference.xml Sat Dec 8 23:09:35 2007 @@ -1,123 +1,9 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3.2.1 $ --> -<!-- Purpose: utilspec.windows --> -<!-- Membership: pecl --> +<!-- $Revision: 1.3.2.2 $ --> <reference xml:id="ref.win32ps" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <title>win32ps Functions</title> - <titleabbrev>win32ps</titleabbrev> + <title>win32ps &Functions;</title> - <partintro> - <section xml:id="win32ps.intro"> - &reftitle.intro; - <para> - The win32ps extension is a Windows specific extension that allows PHP - retrieve statistics about process and memory utilization. - </para> - </section> - <section xml:id="win32ps.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="win32ps.install"> - &reftitle.install; - <procedure xml:id="win32ps.install-from-pecl"> - <title>Installing from PECL</title> - <step> - <para> - You can download php_win32ps.dll from <link xlink:href="&url.pecl.win;">pecl4win.php.net</link>. - </para> - </step> - <step> - <para> - Copy the php_win32ps.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_win32ps.dll -]]> - </screen> - </para> - </step> - </procedure> - </section> - - <section xml:id="win32ps.examples"> - &reftitle.examples; - <para> - <example> - <title>Statistics about the current PHP process</title> - <programlisting role='php'> -<![CDATA[ -<?php -print_r(win32_ps_stat_proc()); -/* - Array - ( - [pid] => 936 - [exe] => D:\Daten\Source\php-5.1\Debug_TS\php.exe - [mem] => Array - ( - [page_fault_count] => 2062 - [peak_working_set_size] => 8396800 - [working_set_size] => 8396800 - [quota_peak_paged_pool_usage] => 32080 - [quota_paged_pool_usage] => 31876 - [quota_peak_non_paged_pool_usage] => 4240 - [quota_non_paged_pool_usage] => 3888 - [pagefile_usage] => 5865472 - [peak_pagefile_usage] => 5865472 - ) - - [tms] => Array - ( - [created] => 0.093 - [kernel] => 0.015 - [user] => 0.062 - ) - - ) -*/ -?> -]]> - </programlisting> - </example> - </para> - <para> - <example> - <title>Statistics about global memory utilization</title> - <programlisting role='php'> -<![CDATA[ -<?php -print_r(win32_ps_stat_mem()); -/* - Array - ( - [load] => 37 - [unit] => 1024 - [total_phys] => 1048096 - [avail_phys] => 649960 - [total_pagefile] => 2521368 - [avail_pagefile] => 2237940 - [total_virtual] => 2097024 - [avail_virtual] => 2057848 - ) -*/ -?> -]]> - </programlisting> - </example> - </para> - </section> - </partintro> &reference.win32ps.functions.entities; </reference> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/w32api/constants.xml?r1=1.3&r2=1.3.2.1&diff_format=u Index: phpdoc/en/reference/w32api/constants.xml diff -u phpdoc/en/reference/w32api/constants.xml:1.3 phpdoc/en/reference/w32api/constants.xml:1.3.2.1 --- phpdoc/en/reference/w32api/constants.xml:1.3 Wed Jun 20 22:25:35 2007 +++ phpdoc/en/reference/w32api/constants.xml Sat Dec 8 23:09:35 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<section xml:id="w32api.constants" xmlns="http://docbook.org/ns/docbook"> +<!-- $Revision: 1.3.2.1 $ --> +<appendix xml:id="w32api.constants" xmlns="http://docbook.org/ns/docbook"> &reftitle.constants; &extension.constants; <variablelist> @@ -115,7 +115,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/w32api/reference.xml?r1=1.12.2.1&r2=1.12.2.2&diff_format=u Index: phpdoc/en/reference/w32api/reference.xml diff -u phpdoc/en/reference/w32api/reference.xml:1.12.2.1 phpdoc/en/reference/w32api/reference.xml:1.12.2.2 --- phpdoc/en/reference/w32api/reference.xml:1.12.2.1 Wed Oct 3 11:41:16 2007 +++ phpdoc/en/reference/w32api/reference.xml Sat Dec 8 23:09:35 2007 @@ -1,116 +1,8 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.12.2.1 $ --> -<!-- Purpose: utilspec.windows --> -<!-- Membership: pecl --> -<!-- State: experimental --> +<!-- $Revision: 1.12.2.2 $ --> <reference xml:id="ref.w32api" xmlns="http://docbook.org/ns/docbook"> <title>W32api Functions</title> - <titleabbrev>W32api</titleabbrev> - - <partintro> - <section xml:id="w32api.intro"> - &reftitle.intro; - <para> - This extension is a generic extension API to DLLs. This was originally - written to allow access to the Win32 API from PHP, although you can also - access other functions exported via other DLLs. - </para> - <para> - Currently supported types are generic PHP types (strings, booleans, floats, - integers and nulls) and types you define with <function>w32api_deftype</function>. - </para> - <note> - <para> - &pecl.moved-ver;5.1.0. - </para> - </note> - &warn.experimental; - </section> - - <section xml:id="w32api.requirements"> - &reftitle.required; - <para> - This extension will only work on Windows systems. - </para> - </section> - - <section xml:id="w32api.installation"> - &reftitle.install; - &no.install; - </section> - - <section xml:id="w32api.configuration"> - &reftitle.runtime; - &no.config; - </section> - - <section xml:id="w32api.resources"> - &reftitle.resources; - <para> - This extension defines one resource type, used for user defined types. - The name of this resource is <literal>"dynaparm"</literal>. - </para> - </section> - - &reference.w32api.constants; - - <section xml:id="w32api.examples"> - &reftitle.examples; - <para> - This example gets the amount of time the system has been running and - displays it in a message box. - </para> - <example> - <title>Get the uptime and display it in a message box</title> - <programlisting role="php"> -<![CDATA[ -<?php -// Define constants needed, taken from -// Visual Studio/Tools/Winapi/WIN32API.txt -define("MB_OK", 0); - -// Load the extension in -dl("php_w32api.dll"); - -// Register the GetTickCount function from kernel32.dll -w32api_register_function("kernel32.dll", - "GetTickCount", - "long"); - -// Register the MessageBoxA function from User32.dll -w32api_register_function("User32.dll", - "MessageBoxA", - "long"); - -// Get uptime information -$ticks = GetTickCount(); - -// Convert it to a nicely displayable text -$secs = floor($ticks / 1000); -$mins = floor($secs / 60); -$hours = floor($mins / 60); - -$str = sprintf("You have been using your computer for:" . - "\r\n %d Milliseconds, or \r\n %d Seconds" . - "or \r\n %d mins or\r\n %d hours %d mins.", - $ticks, - $secs, - $mins, - $hours, - $mins - ($hours*60)); - -// Display a message box with only an OK button and the uptime text -MessageBoxA(NULL, - $str, - "Uptime Information", - MB_OK); -?> -]]> - </programlisting> - </example> - </section> - </partintro> &reference.w32api.functions.entities; http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/printer/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/printer/book.xml +++ phpdoc/en/reference/printer/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/printer/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/printer/setup.xml +++ phpdoc/en/reference/printer/setup.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/win32service/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/win32service/book.xml +++ phpdoc/en/reference/win32service/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/win32service/examples.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/win32service/examples.xml +++ phpdoc/en/reference/win32service/examples.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/win32service/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/win32service/setup.xml +++ phpdoc/en/reference/win32service/setup.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/win32ps/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/win32ps/book.xml +++ phpdoc/en/reference/win32ps/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/win32ps/constants.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/win32ps/constants.xml +++ phpdoc/en/reference/win32ps/constants.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/win32ps/examples.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/win32ps/examples.xml +++ phpdoc/en/reference/win32ps/examples.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/win32ps/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/win32ps/setup.xml +++ phpdoc/en/reference/win32ps/setup.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/w32api/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/w32api/book.xml +++ phpdoc/en/reference/w32api/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/w32api/examples.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/w32api/examples.xml +++ phpdoc/en/reference/w32api/examples.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/w32api/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/w32api/setup.xml +++ phpdoc/en/reference/w32api/setup.xml