Posted By

brainwaves on 07/19/10


Tagged

http ajax textmate request detect call


Versions (?)

Who likes this?

4 people have marked this snippet as a favorite

seloh77
osirisinternet
FedericoBiccheddu
wirenaught


Detect Ajax


 / Published in: PHP
 

  1. /* AJAX check */
  2. if(!empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest') {
  3. /* special ajax here */
  4. die($content);
  5. }

Report this snippet  

You need to login to post a comment.