Created
November 13, 2009 03:21
-
-
Save tomschlick/233561 to your computer and use it in GitHub Desktop.
checks to see if the current server request was made with AJAX , returns boolean TRUE or FALSE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function _is_ajax() | |
{ | |
return (isset($_SERVER['HTTP_X_REQUESTED_WITH']) && ($_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest')); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment