Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- * XML Server.
- */
- // We use php://input to get the raw $_POST results.
- $xml_post = file_get_contents('php://input');
- // If we receive data, save it.
- if ($xml_post) {
- $xml_file = 'image' . microtime() . '.xml';
- $fh = fopen($xml_file, 'w') or die();
- fwrite($fh, $xml_post);
- fclose($fh);
- echo "true";
- // Return, as we don't want to cause a loop by processing the code below.
- return;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement