Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
f8aabc3
banana-split
Apr 15, 2002
9b934d2
WS fix
Apr 15, 2002
32a236e
revision tags added
Apr 17, 2002
2d65ee6
the en/reference/*/functions.xml files are now auto-generated (should…
Jun 11, 2002
4526d24
New structure applied to XML-RPC reference. Actually I have added som…
Jul 20, 2002
c948977
ini.xml added, linked in reference
Sep 15, 2002
aa84e3e
rsusi.txt: reflect changes configure.xml files added, linking from re…
Dec 2, 2002
c82e100
proto update
Sep 27, 2003
97b1716
Uppercase first letters in titles' words
vrana Feb 24, 2004
368d2b9
- it's => its.
Feb 28, 2004
5494af2
proto corrections skeleton for xmlrpc-is-fault
Jul 21, 2004
37d2188
Parameters passed by reference
vrana Aug 3, 2004
8afc9ae
Fix protos from sources
vrana Aug 18, 2004
6b41caa
Simplify refpurposes
vrana Aug 19, 2004
76ab619
rtrim($refpurpose, '.')
vrana Aug 20, 2004
9c6b637
Replace <parameter>&amp; by <parameter role="reference">
vrana Nov 10, 2004
c06db78
INI directives have been moved to the appendix
vrana Feb 15, 2005
b9d2ef2
finally add the changelog column and update values for all ini.xml files
nunoplopes Feb 22, 2005
78247f8
Fix return types (2/2)
vrana Jun 24, 2005
13ae4a5
add tagging
nunoplopes Sep 4, 2005
a2737fa
Switch to new style
Jan 7, 2007
72acfe8
Document client side functions
vrana Jan 17, 2007
1baa34d
Add missing <para>
bjori Jan 17, 2007
f4be611
Fix 38445: Returns mixed
Jan 22, 2007
7839c33
Fix (see #31733)
msamesch Mar 3, 2007
15d578f
Added missing [State: experimental] attribute
philip Jun 14, 2007
0328257
Upgrade to DocBook5: - All id attributes are now xml:id - Add docbook…
bjori Jun 20, 2007
7286fc0
Document (bug #42190)
vrana Aug 16, 2007
9e6a406
MFB: Rename "functions.xml" to entities.<dirname>.xml
bjori Dec 10, 2007
d05db36
MFB: Upgrade to the new-reference-structure - (Created missing setup …
bjori Dec 23, 2007
b6d3f14
Contains version information (when functions became available to PHP)…
philip Nov 4, 2008
a4dd790
- Document xmlrpc_errors and xmlrpc_error_number - Add html_errors an…
bjori Nov 13, 2008
01e2f0a
Add an example
Mar 22, 2009
0f8dbc7
fixed properties
nilgun Jul 11, 2009
07dff1f
Normalized the sgml-default-dtd-file local-variable line for those st…
Sep 25, 2009
2b1bcb3
Catch errors in example (bug #49378)
vrana Nov 13, 2009
7ef42f0
Prefer <initializer> before "defaults to"
vrana Nov 25, 2009
9367dee
Converted to utf-8
Mar 28, 2010
230beee
Converted to UTF-8
Mar 29, 2010
91396e0
Reverted r297058
Mar 29, 2010
90bad37
Converted remaining files to utf-8
Mar 29, 2010
4667312
- Unified and clarified the installation section of our libxml based …
philip Jun 29, 2010
d3d8899
Document xmlrpc_get_type
vrana Jun 29, 2011
852e4d5
Extension purpose is not needed anymore
vrana Jul 15, 2011
c013e5f
Standardise on single style of quotes for XML tag.
Aug 16, 2011
4d5e2a7
mark bunch of extensions with "membership" PI (like the membership co…
bjori Jun 9, 2012
1cbffe9
Delete redundant <!-- Membership: -->
vrana May 23, 2013
404334d
Making the XML definition consistent across the entire project.
Sep 5, 2014
f35b20d
Update version information to include PHP 7.
LawnGnome Jan 4, 2016
9ecaa79
Fix function signatures
vrana Jan 25, 2018
f099c89
Remove obsolete PHP 4 related info
cmb69 Apr 20, 2018
fb4203a
Fix errors section not being in position four
thinkverse Apr 30, 2021
40fbdd5
Fix extension doc membership
Girgias May 20, 2021
c5f2db1
Remove empty constants pages (#3527)
haszi Jul 9, 2024
55834f6
Remove empty configuration pages (#3538)
haszi Jul 9, 2024
d020334
Remove extension state tags which do no longer apply (GH-3644)
cmb69 Aug 7, 2024
bbae053
fix(reference/stream): example code php5.4 array syntax
hakre Jun 22, 2025
7952d99
Mark version.xml files as do-not-translate (#5662)
alfsb Jul 15, 2026
c68c539
Convert the installation para to simpara
Aug 5, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions reference/xmlrpc/book.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- State: deprecated -->

<book xml:id="book.xmlrpc" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<?phpdoc extension-membership="pecl" ?>
<title>XML-RPC</title>

<!-- {{{ preface -->
<preface xml:id="intro.xmlrpc">
&reftitle.intro;
<para>
These functions can be used to write XML-RPC servers and clients.
You can find more information about XML-RPC at
<link xlink:href="&url.xmlrpc;">&url.xmlrpc;</link>, and more
documentation on this extension and its functions at
<link xlink:href="&url.xmlrpc-epi;">&url.xmlrpc-epi;</link>.
</para>
&warn.experimental;

Check failure on line 18 in reference/xmlrpc/book.xml

View workflow job for this annotation

GitHub Actions / DocBook Style Check (extensions)

book.xml: XML parse error: Entity 'warn.experimental' not defined
</preface>
<!-- }}} -->

&reference.xmlrpc.setup;
&reference.xmlrpc.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:"~/.phpdoc/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
-->

32 changes: 32 additions & 0 deletions reference/xmlrpc/configure.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<section xml:id="xmlrpc.installation" xmlns="http://docbook.org/ns/docbook">
&reftitle.install;
<simpara>
XML-RPC support in PHP is not enabled by default. You will need to
use the <option role="configure">--with-xmlrpc[=DIR]</option> configuration
option when compiling PHP to enable XML-RPC support.
</simpara>
</section>

<!-- 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:"~/.phpdoc/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
-->

40 changes: 40 additions & 0 deletions reference/xmlrpc/functions/xmlrpc-decode-request.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<refentry xml:id="function.xmlrpc-decode-request" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>xmlrpc_decode_request</refname>
<refpurpose>Decodes XML into native PHP types</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>mixed</type><methodname>xmlrpc_decode_request</methodname>
<methodparam><type>string</type><parameter>xml</parameter></methodparam>
<methodparam><type>string</type><parameter role="reference">method</parameter></methodparam>
<methodparam choice="opt"><type>string</type><parameter>encoding</parameter></methodparam>
</methodsynopsis>
&warn.experimental.func;

Check failure on line 16 in reference/xmlrpc/functions/xmlrpc-decode-request.xml

View workflow job for this annotation

GitHub Actions / DocBook Style Check (extensions)

xmlrpc-decode-request.xml: XML parse error: Entity 'warn.experimental.func' not defined
&warn.undocumented.func;
</refsect1>
</refentry>

<!-- 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:"~/.phpdoc/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
-->
88 changes: 88 additions & 0 deletions reference/xmlrpc/functions/xmlrpc-decode.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<refentry xml:id="function.xmlrpc-decode" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>xmlrpc_decode</refname>
<refpurpose>Decodes XML into native PHP types</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>mixed</type><methodname>xmlrpc_decode</methodname>
<methodparam><type>string</type><parameter>xml</parameter></methodparam>
<methodparam choice="opt"><type>string</type><parameter>encoding</parameter><initializer>"iso-8859-1"</initializer></methodparam>
</methodsynopsis>
&warn.experimental.func;

Check failure on line 15 in reference/xmlrpc/functions/xmlrpc-decode.xml

View workflow job for this annotation

GitHub Actions / DocBook Style Check (extensions)

xmlrpc-decode.xml: XML parse error: Entity 'warn.experimental.func' not defined
</refsect1>

<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>xml</parameter></term>
<listitem>
<para>
XML response returned by XMLRPC method.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>encoding</parameter></term>
<listitem>
<para>
Input encoding supported by iconv.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>

<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Returns either an array, or an integer, or a string, or a boolean according
to the response returned by the XMLRPC method.
</para>
</refsect1>

<refsect1 role="examples">
&reftitle.examples;
<para>
See example by <function>xmlrpc_encode_request</function>.
</para>
</refsect1>

<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>xmlrpc_encode_request</function></member>
<member><function>xmlrpc_is_fault</function></member>
</simplelist>
</para>
</refsect1>

</refentry>

<!-- 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:"~/.phpdoc/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
-->
129 changes: 129 additions & 0 deletions reference/xmlrpc/functions/xmlrpc-encode-request.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<refentry xml:id="function.xmlrpc-encode-request" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>xmlrpc_encode_request</refname>
<refpurpose>Generates XML for a method request</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>string</type><methodname>xmlrpc_encode_request</methodname>
<methodparam><type>string</type><parameter>method</parameter></methodparam>
<methodparam><type>mixed</type><parameter>params</parameter></methodparam>
<methodparam choice="opt"><type>array</type><parameter>output_options</parameter></methodparam>
</methodsynopsis>
&warn.experimental.func;

Check failure on line 16 in reference/xmlrpc/functions/xmlrpc-encode-request.xml

View workflow job for this annotation

GitHub Actions / DocBook Style Check (extensions)

xmlrpc-encode-request.xml: XML parse error: Entity 'warn.experimental.func' not defined
</refsect1>

<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>method</parameter></term>
<listitem>
<para>
Name of the method to call.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>params</parameter></term>
<listitem>
<para>
Method parameters compatible with method signature.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>output_options</parameter></term>
<listitem>
<para>
Array specifying output options may contain (default values are
emphasised):
<itemizedlist>
<listitem><para>output_type: php, <emphasis>xml</emphasis></para></listitem>
<listitem><para>verbosity: no_white_space, newlines_only, <emphasis>pretty</emphasis></para></listitem>
<listitem><para>escaping: cdata, <emphasis>non-ascii, non-print, markup</emphasis>
(may be a string with one value or an array with multiple values)</para></listitem>
<listitem><para>version: simple, <emphasis>xmlrpc</emphasis>, soap 1.1, auto</para></listitem>
<listitem><para>encoding: <emphasis>iso-8859-1</emphasis>, other character set supported by iconv</para></listitem>
</itemizedlist>
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>

<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Returns a string containing the XML representation of the request.
</para>
</refsect1>

<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title>XMLRPC client functions example</title>
<programlisting role="php">
<![CDATA[
<?php
$request = xmlrpc_encode_request("method", [1, 2, 3]);
$context = stream_context_create([
'http' => [
'method' => "POST",
'header' => "Content-Type: text/xml",
'content' => $request,
]
]);
$file = file_get_contents("http://www.example.com/xmlrpc", false, $context);
$response = xmlrpc_decode($file);
if ($response && xmlrpc_is_fault($response)) {
trigger_error("xmlrpc: $response[faultString] ($response[faultCode])");
} else {
print_r($response);
}
?>
]]>
</programlisting>
</example>
</para>
</refsect1>

<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>stream_context_create</function></member>
<member><function>file_get_contents</function></member>
<member><function>xmlrpc_decode</function></member>
</simplelist>
</para>
</refsect1>

</refentry>

<!-- 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:"~/.phpdoc/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
-->
38 changes: 38 additions & 0 deletions reference/xmlrpc/functions/xmlrpc-encode.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<refentry xml:id="function.xmlrpc-encode" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>xmlrpc_encode</refname>
<refpurpose>Generates XML for a PHP value</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>string</type><methodname>xmlrpc_encode</methodname>
<methodparam><type>mixed</type><parameter>value</parameter></methodparam>
</methodsynopsis>
&warn.experimental.func;

Check failure on line 14 in reference/xmlrpc/functions/xmlrpc-encode.xml

View workflow job for this annotation

GitHub Actions / DocBook Style Check (extensions)

xmlrpc-encode.xml: XML parse error: Entity 'warn.experimental.func' not defined
&warn.undocumented.func;
</refsect1>
</refentry>

<!-- 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:"~/.phpdoc/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
-->
Loading
Loading