Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // state_save.php
- header('Content-Type: application/json');
- $content = json_encode($_REQUEST);
- $fh = fopen('saved_state.json', 'w');
- fwrite($fh, $content);
- fclose($fh);
- echo $content;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement