Skip to content

Instantly share code, notes, and snippets.

@gentoid
Created January 22, 2013 11:56
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 gentoid/4594066 to your computer and use it in GitHub Desktop.
Save gentoid/4594066 to your computer and use it in GitHub Desktop.
Is it HTTP_X_REQUESTED_WITH?
if (!isset($_SERVER['HTTP_X_REQUESTED_WITH']) || $_SERVER['HTTP_X_REQUESTED_WITH'] != 'XMLHttpRequest') {
return;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment