Skip to content

Instantly share code, notes, and snippets.

@bbrothers
Created December 17, 2012 15:49
Show Gist options
  • Save bbrothers/4319314 to your computer and use it in GitHub Desktop.
Save bbrothers/4319314 to your computer and use it in GitHub Desktop.
Detect if ajax request
$_SERVER['HTTP_X_REQUESTED_WITH'] == 'xmlhttprequest'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment