XML-RPC Windows

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux