Posted By

sb_01 on 09/19/10


Tagged

ajax javascript php jquery


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

koteus
ljayz
mmcachran


Only allow AJAX for a HTTP Request


 / Published in: PHP
 

  1. // If the request did not come from AJAX, exit:
  2. if($_SERVER['HTTP_X_REQUESTED_WITH'] !='XMLHttpRequest'){
  3. }

Report this snippet  

You need to login to post a comment.