systemart / rtgui

Automatically exported from code.google.com/p/rtgui
0 stars 0 forks source link

rtGui + xmlrpc #19

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
rTorrent 0.8.0/0.12.0, rtGui v0.2.3

Hi,

I found solution to run rtGui which provides support for the XMLRPC 
protocol via the native php xmlrpc extension, but the extension is not 
available on php install (e.g. because of shared hosting constraints).

[quote][url=http://ru2.php.net/manual/en/ref.xmlrpc.php]XML-RPC support in 
PHP is not enabled by default. You will need to use the --with-xmlrpc
[=DIR] configuration option when compiling PHP to enable XML-RPC support. 
This extension is bundled into PHP as of 4.1.0.[/url][/quote]
An alternative XML-RPC implementation is available at [url]
http://www.xmlrpc.com/directory/1568/implementations.[/url]

You can add include files from 
[url=http://sourceforge.net/projects/phpxmlrpc/]phpxmlrpc[/url].
[quote]The original author is Edd Dumbill of Useful Information Company 
([url]http://xmlrpc.usefulinc.com[/url] seems to be dead know). As of the 
1.0 stable release, the project has been opened to wider involvement and 
moved to SourceForge.
Since version 2.1, the PHP-XMLRPC library provides a compatibility layer 
that aims to be 100% compliant with the xmlrpc extension API. This means 
that any code written to run on the extension should obtain the exact same 
results, albeit using more resources and a longer processing time, using 
the PHP-XMLRPC library and the extension compatibility module. The module 
is part of the EXTRAS package, available as a separate download from the 
sourceforge.net website, since version 0.2
[/quote]

edit rtgui/function.php
add this lines at the beging of file
if(!function_exists('xml_parser_create'))
{
  include("xmlrpc.inc");
  include("xmlrpc_extension_api.inc");
}

You need to download 
[url=http://dfn.dl.sourceforge.net/sourceforge/phpxmlrpc/xmlrpc-
2.2.1.tar.gz]phpxmlrpc[/url]+
[url=http://dfn.dl.sourceforge.net/sourceforge/phpxmlrpc/xmlrpc-extras-
0.4.tar.gz]extras[/url].
extract xmlrpc.inc, xmlrpc_extension_api.inc to rtgui/

Can you include this patch to you trunk/head ?
Tnx

Original issue reported on code.google.com by kos...@mail.ru on 9 Mar 2008 at 12:20

GoogleCodeExporter commented 9 years ago
The way I understand this, it's a workaround.

I'm not against it at all, but don't see why it's necessary for all users.

I also don't want to add to the requirments of rtGui.

Original comment by lemonbe...@gmail.com on 12 Mar 2008 at 8:03

GoogleCodeExporter commented 9 years ago
it only for sites with no xmlrpc support on server,
and will use native if it available...
but it saves lot of time for people like my
who use rtGui on embedded devices and can't recompile firmware

it also remove xmlrpc requirments, just try it..

Original comment by kos...@mail.ru on 12 Mar 2008 at 9:06

GoogleCodeExporter commented 9 years ago
Sorry for long delay - just going back through old issues.
I will include the code in next version (0.2.7)...

Original comment by lemonbe...@gmail.com on 5 Dec 2008 at 10:38

GoogleCodeExporter commented 9 years ago
Fixed in version 0.2.7

Original comment by lemonbe...@gmail.com on 16 Mar 2009 at 10:19