Cross Domain Ajax Handler Using PHP

Posted Posted in How To

 Presentation of a PHP-based solution to cross-domain AJAX requests.   References: There are ways to handle AJAX requests on the same domain, such as:  http://www.tomhoppe.com/index.php/2008/03/cross-sub-domain-javascript-ajax-iframe-etc/ http://stackoverflow.com/questions/4106993/ajax-cross-sub-domain-requests http://00f.net/2008/06/24/cross-subdomain-ajax-made-simple/ Or using IFRAMES to allow for cross-domain reqeusts, such as: http://abhinavsingh.com/blog/2009/11/making-cross-sub-domain-ajax-xhr-requests-using-mod_proxy-and-iframes/ http://stackoverflow.com/questions/648899/a-question-about-cross-domain-subdomain-ajax-request The following: uses an intermediate PHP script as buffer. maintains the integrity of the browser domain, […]