I recently used Open Flash Chart to display statistics in a PHP based application. The library proved pozerful and easy to use. When the development was completed and moved to the production server (over https) the charts failed to display for IE6 (and Safari) users. Instead, the browser would try and download the page as a file.

After trying to set all kinds of headers in my PHP code to override this strange behavior, I realized that OpenFlashChart adds its own headers (type=text) to the output.

To solve the problem, I simply commented out the lines

1
2
3
echo headers_sent() ?'yes':'no';
if( !headers_sent() )
header('content-type: text; charset: utf-8');

from open-flash-chart.php at line 1828.

That fixed it for me. Hope it helps


Comments

1 Comment so far

  1. samantha says:

    Open Flash Chart, IE6 ad SSL: dangerous mix http://bit.ly/3w0ijd

Name (required)

Email (required)

Website

Leave a Reply