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, […]

Symfony on Plesk 10.2

Posted Posted in How To

How to configure Symfony to run under Plesk, due to the Alias & doc_root issues with open_basedir. Configure subdomain & document root via Plesk ie.: dev.domain.com =  dev/symfony/web Create vhost.conf under /var/www/vhosts/domain.com/subdomains/dev/conf Edit vhost.conf: FOR SYMFONY 1.4 DocumentRoot /var/www/vhosts/domain.com/dev/symfony/webAlias /sf /var/www/vhosts/domain.com/dev/symfony/lib/vendor/symfony/data/web/sf<Directory /var/www/vhosts/domain.com/dev/symfony/web> php_admin_value open_basedir none AllowOverride All </Directory><Directory /var/www/vhosts/domain.com/dev/symfony/web> AllowOverride All Allow from All </Directory> […]