Jump to content

Page does not load properly with Internet Explorer


davidsc

Recommended Posts

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]

  • 3 months later...

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".

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.