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]

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.