Ajax / CodeIgniter / JavaScript / PHPHow to check ajax request or not November 27, 2016 Chandan SharmaComment on How to check ajax request or notif (!empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest' ) { // It is ajax Request } Share this:FacebookX