Posted By

StephFR on 08/17/10


Tagged

ajax php


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

Vordreller
AlejoLuc
wirenaught


Test if called from XMLHttpRequest


 / Published in: PHP
 

  1. if($_SERVER["HTTP_X_REQUESTED_WITH"] == 'XMLHttpRequest')
  2. {
  3. // Called from XMLHttpRequest
  4. }

Report this snippet  

You need to login to post a comment.