Glavo HTTP_X_REQUESTED_WITH pošljejo vsi nedavni brskalniki, ki podpirajo zahteve AJAX.
if ( !empty($_SERVER('HTTP_X_REQUESTED_WITH')) && strtolower($_SERVER('HTTP_X_REQUESTED_WITH')) == 'xmlhttprequest' ) ( # Ex. check the query and serve requested data )