Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2012
499
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.45 KB | None | 0 0
  1. <?php
  2.   /*
  3.    * XML Server.
  4.    */
  5.   // We use php://input to get the raw $_POST results.
  6.   $xml_post = file_get_contents('php://input');
  7.   // If we receive data, save it.
  8.   if ($xml_post) {
  9.     $xml_file = 'image' . microtime() . '.xml';
  10.     $fh       = fopen($xml_file, 'w') or die();
  11.     fwrite($fh, $xml_post);
  12.     fclose($fh);
  13.     echo "true";
  14.     // Return, as we don't want to cause a loop by processing the code below.
  15.     return;
  16.   }
  17. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement