With php I want to know whether an ajax request came from ajax.js or index.php. The file that is being requested is ajax.php. I have tried using $_SERVER[HTTP_REFERER] to figure this out but instead of http://www.example.com/ajax.js, I am receiving http://www.example.com/index.php.
So how can I figure out what file made the ajax call using php using data that the client CAN NOT CHANGE?
 
    