Skip to content

Instantly share code, notes, and snippets.

@Ulv
Created October 24, 2012 16:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ulv/3947230 to your computer and use it in GitHub Desktop.
Save Ulv/3947230 to your computer and use it in GitHub Desktop.
mime types
// Atom
header('Content-type: application/atom+xml');
// CSS
header('Content-type: text/css');
// Javascript
header('Content-type: text/javascript');
//JPEG Image
header('Content-type: image/jpeg');
//JSON
header('Content-type: application/json');
//PDF
header('Content-type: application/pdf');
//RSS
header('Content-Type: application/rss+xml; charset=ISO-8859-1');
//Text (Plain)
header('Content-type: text/plain');
//XML
header('Content-type: text/xml');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment