I'm working on a website which will primarily be displayed in IE6. The design requires the use of transparent PNG images, and a solution I've used previously is a PHP script. The requirements of the script are as follows:
1. Before EVERYTHING in the entire site, the following function must be called:
ob_start();
2. After EVERYTHING in the entire site, the following must be inserted:
include_once($_SERVER['DOCUMENT_ROOT']."/mysite/code/png_fix.php");
echo png_fix(ob_get_clean());
As you can see, I've placed the PNG fix script at /mysite/code/png_fix.php. The two changes above were inserted into /mysite/code/Page.php (at the beginning and end, obviously).
This doesn't seem to have any effect. I've used this script on a number of other websites with no problems. Additionally I've tried some JavaScript solutions in the past, with mixed success. The best JavaScript solution I've used (unitpngfix.js) in this case destroys the site layout (elements appear all over the place).
So, my question is: Have I inserted the PHP-based PNG transparency fix script in the right place?