SyntaxFix
Write A Post
Hire A Developer
Questions
Try below code snippet
if(!empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest') { /* This is one ajax call */ }