Advertisement
planzelle

Pt.2: DataTables ColReorder Ajax State Save

Dec 1st, 2015
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.19 KB | None | 0 0
  1. <?php
  2. // state_save.php
  3. header('Content-Type: application/json');
  4. $content = json_encode($_REQUEST);
  5. $fh = fopen('saved_state.json', 'w');
  6. fwrite($fh, $content);
  7. fclose($fh);
  8. echo $content;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement