XML-RPC Windows

I hope someone can help. I have been using the PHP XML-RPC extensions
with great success on Linux. I recently decided to make my live a bit
easier on the move by installing all necessary components on my Windows
machine (I know...) On Linux the PHP script below works fine but on
Windows the call to this script returns the verbatim PHP script (and not
the executed code...). This is running on Apache 2.2.9 with PHP 5.2.6.

I must be doing something wrong in the Apache or PHP setup but I can't
find it and would appreciate your help. Thanks in advance.

Brain

<?php

function MyFunction ($method_name, $args, $user_data) {
$ReplyArray['OK'] = (string) "YES";
return $ReplyArray;
}

$XMLOptions = array( 'output_type' => 'xml',
'verbosity' => 'pretty',
'version' => 'auto',
'debug' => 2);

$XMLServer = xmlrpc_server_create();

xmlrpc_server_register_method($XMLServer, 'local.testxml', 'MyFunction');

if ($response = xmlrpc_server_call_method($XMLServer, $HTTP_RAW_POST_DATA, null, $XMLOptions))
{
header("Content-Type: text/xml");
header("Content-Encoding: identity");
echo $response;
}

?>




--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Bolle [ Di, 05 August 2008 20:41 ] [ ID #1963200 ]
PHP » gmane.comp.php.windows » XML-RPC Windows

Vorheriges Thema: Executing a batch file on Windows from Linux using a PHP or a Shell-Script
Nächstes Thema: Variables variables and the Object Factory