File: server_compliance_test.php

package info (click to toggle)
xmlrpc-epi 0.54.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,588 kB
  • sloc: sh: 12,254; ansic: 5,747; xml: 1,387; makefile: 166; php: 17
file content (26 lines) | stat: -rw-r--r-- 536 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php 
// Handles XML-RPC Post Requests, as defined at www.xmlrpc.org

$server_path = "/home/danda/dev/xmlrpc_sourceforge/xmlrpc/sample/server_compliance_test";
$data = $HTTP_RAW_POST_DATA;
$request_path = "/tmp/xmlrpc.tmp.file";

if(isset($data)) {

   $fh = fopen("$request_path", "w");
   if($fh) {
      fwrite($fh, $data);
      fclose($fh);

      echo `$server_path $options < $request_path`;

      unlink($request_path);
   }
}
else {
   echo "<h1>Bogus XML-RPC Request.  No Post Data!!  Go away.</h1>";
}
flush();
exit();
?>