davidsc Posted August 6, 2007 Share Posted August 6, 2007 Hi, I have what seems to be a PHP headers problem when I'm using SSL. My page loads a flash SWF successfully in Firefox but in IE a File Download dialog box appears instead (see attached zip). The php (test.php) in my attachment comprises: <?php header('Content-type: application/x-shockwave-flash'); header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Cache-Control: no-store, no-cache, must-revalidate"); header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); session_start(); header("Cache-Control: private"); if (isset($_SERVER['HTTPS']) == false) { // if session check fails, invoke error handler header("Location: www.google.com"); exit(); } $filename = "test.swf"; $content = file_get_contents("$filename"); echo $content; ?> When it runs properly (as it does in Firefox) it displays the SWF file test.swf in the browser. Looking for a solution that maintains SSL security. David [attachment deleted by admin] Quote Link to comment Share on other sites More sharing options...
Xtreeme Posted November 19, 2007 Share Posted November 19, 2007 If you still dont have this figured out. Try javascript to execute the flash file. I dont think that will harm your SSL. ITs worth a try atleast as its easy to do. Check my last post and link here.... http://www.phpfreaks.com/forums/index.php/topic,166970.15.html The key is to make a .js file with your flash code in it. This gets you around some of IEs "issues". Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.