json header in php


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. ini_set('display_errors', 0);
  2. header("Expires: Mon, 26 Jul 1997 05:00:00 GMT" );
  3. header("Last-Modified: " . gmdate( "D, d M Y H:i:s" ) . "GMT" );
  4. header("Cache-Control: no-cache, must-revalidate" );
  5. header("Pragma: no-cache" );
  6. header("Content-type: application/json");

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.