Check whether request is made from Ajax – PHP

1 · Subin Siby · July 16, 2013, 3:30 a.m.
To check whether a request has been made is from Ajax or not you can use $_SERVER[‘HTTP_X_REQUESTED_WITH’]. See the following example: There you go. You now know how to check whether request made to file is from an Ajax Call or not in PHP....