PHP : is there any function works like xmlrpc_encode_request?
<p>I've been writing free php script</p>

<p>when i finished unfortunately i found that xmlrpc_encode_request not work in some hosting</p>

<p>is there a way to active it direct without editing php.ini ? or is there any function works  like xmlrpc_encode_request without edit php.ini?</p>

<p>Any help would be much appreciated. </p>

<p>EX:</p>

<pre><code>&lt;?php
$request = xmlrpc_encode_request("method", array(1, 2, 3));
$context = stream_context_create(array('http' =&gt; array(
    'method' =&gt; "POST",
    'header' =&gt; "Content-Type: text/xml",
    'content' =&gt; $request
)));
$file = file_get_contents("http://www.example.com/xmlrpc", false, $context);
$response = xmlrpc_decode($file);
if ($response &amp;&amp; xmlrpc_is_fault($response)) {
    trigger_error("xmlrpc: $response[faultString] ($response[faultCode])");
} else {
    print_r($response);
}
?&gt;
</code></pre>
