I am wondering what you guys are doing to detect whether your PHP script is being called via AJAX or --- "regular."I know Prototype sends a custom headers e.g. [X-Prototype-Version] => 1.5.0 [X-Requested-With] => XMLHttpRequest
I've been checking for $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest' jQuery seems to send it as well.
_______________________________________________ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk NYPHPCon 2006 Presentations Online http://www.nyphpcon.com Show Your Participation in New York PHP http://www.nyphp.org/show_participation.php
