planzelle

Pt.2: DataTables ColReorder Ajax State Save

Dec 1st, 2015
84
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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;
RAW Paste Data