Install Diffuse in Ubuntu open Terminal Type Command:
sudo apt-get install diffuse
diffuse file1 file2
Eg:diffuse source.php sourcedemo.php
diffuse will be display like:
sudo apt-get install diffuse
$_SERVER['HTTP_X_REQUESTED_WITH']
if(isset($_SERVER['HTTP_X_REQUESTED_WITH']) && !empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest')
{
From Ajax
}else{
Not Ajax
}