Posted By

shodan_uk on 03/30/11


Tagged

ajax


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

nbegiter
notturnale


Check for Ajax request


 / Published in: PHP
 

  1. $isAjax = (!empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest');

Report this snippet  

You need to login to post a comment.