Posts Tagged ‘Elgg’

Tip: Use PHP_SELF and mod_rewrite without using .htaccess

Want to use your favorite PHP framework without it’s .htaccess file by moving those settings into your httpd.conf but it’s not quite working out? This is probably because some of those settings in the .htaccess file are rewrites and the PHP framework you are using uses a front controller that relies on the PHP_SELF server [...]

Tip: Turn PHP output_buffering off when using Elgg

I created a comment plugin for Elgg 1.2 with AJAX effects, but it wouldn’t load the return value from the form submission properly—it would load the entire dashboard page. For some reason Elgg was outputting the location http header causing a redirect. The solution? Set PHP’s output_buffering setting to ‘off’.

Subscribe to RSS Feed Follow me on Twitter!