Detect an AJAX request with PHP
august 2010 by andy206uk
Sometimes a script needs to know if it's been requested by a normal POST / GET request or via an AJAX call. This code provides that.
php
code
snipped
ajax
august 2010 by andy206uk