d
Amit DhamuSoftware Engineer
 

Detect AJAX Request in PHP

1 minute read 00000 views
if (isset($_SERVER['HTTP_X_REQUESTED_WITH'])) {
    // AJAX request detected
}