<?php
	if(isset($_SERVER['HTTP_X_REQUESTED_WITH']) &&  $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest')
	{
		echo 'YaY!!! Request successfull.';
	}
	else
	{
		echo 'This is not an AJAX request.This page cannot be accessed directly.';
	}
?>