Pt.2: DataTables ColReorder Ajax State Save

planzelle Dec 1st, 2015 67 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand