/ Published in: PHP
Returns true is the request was made with one of the Ajax libraries that adds the "X-Reqested-With" HTTP header, for example: jQuery.
Expand |
Embed | Plain Text
function isAjax () { if ( && $_SERVER['HTTP_X_REQUESTED_WITH'] == "XMLHttpRequest") return true; return false; }
You need to login to post a comment.
