XML-RPC Windows

From: Date: Tue, 05 Aug 2008 18:41:52 +0000
Subject: XML-RPC Windows
Groups: php.windows 
Request: Send a blank email to php-windows+get-29006@lists.php.net to get a copy of this message
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; } ?>

« previous php.windows (#29006) next »