PHP Detect AJAX

http://davidwalsh.name/detect-ajax