I have problem with the function isAjax(), it always return false even when i add the header "HTTP_X_REQUESTED_WITH" to "XMLHttpRequest", and when i print out the header info it is empty, too. I'm now using ubuntu 14.04 64bits, my code used to work well on ubuntu 12.04. Please help me.