Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if ($_SERVER['REQUEST_METHOD'] == 'POST') {
- // fetch RAW input
- $json = file_get_contents('php://input');
- // decode json
- $object = json_enc($json);
- file_put_contents('callback.test.txt', print_r($object, true));
- }
- ?>
Add Comment
Please, Sign In to add comment