Skip to content

Instantly share code, notes, and snippets.

@NazarenoL
Created October 2, 2015 21:20
Show Gist options
  • Save NazarenoL/8bfa7b2114486828477a to your computer and use it in GitHub Desktop.
Save NazarenoL/8bfa7b2114486828477a to your computer and use it in GitHub Desktop.
Coding horror found around #2
function display_output($string = null){
// header('content-type: application/json; charset=utf-8');
header("Access-Control-Allow-Origin: *");
header("Content-Disposition: attachment; filename=output.json");
header("Pragma: no-cache");
header('Content-Type: text/html; charset=utf-8');
header("Expires: 0");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment