PHP

How to detect AJAX request in PHP

Ajax Request
Deep
Written by Deep

To detect an AJAX request in PHP there are several methods :

If you are using

Core PHP :

//Using Global Variables

//With Apache request header method :

 

Codeigniter Framework:

Method :

 

Response :  Boolean

 

Leave a Comment