ebknapp / swfobject

Automatically exported from code.google.com/p/swfobject
0 stars 0 forks source link

embedswf in firefox3 doesn't understand php page that uses readfile(file) #220

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
======================================
What steps will reproduce the problem?
======================================

1. Have one test.php file like this: 

<?
$filename="movie.swf";

header("Pragma: public"); // required
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Cache-Control: private",false);
header("Content-Type: application/x-shockwave-flash");
header("Content-Disposition: attachment;
filename=\"".basename($filename)."\";" );
header("Content-Transfer-Encoding: binary");
header("Content-Length: ".filesize($filename));
readfile("$filename");exit();
?>

2. Have an HTML with the embedSWF javascript function:
swfobject.embedSWF("test.php", "contentDiv", "400", "300", "8.0.0", false,
flashvars, params, attributes);

======================================
What is the expected output? What do you see instead?
======================================

In firefox 2 and IE7 the specified movie is loaded. Instead, it doesn't
load anything in firefox 3.

======================================
What version of the product are you using? On what operating system?
======================================

Ver: 2.1

Server (swfobject.js): Linux
Client: Windows XP, Firefox 2, 3, IE7

======================================
Please provide any additional information below.
======================================

Maybe a firefox 3 problem instead?...

Original issue reported on code.google.com by lmgas...@gmail.com on 18 Nov 2008 at 5:29

GoogleCodeExporter commented 9 years ago
Well, this looks like an authoring issue and not a swfobject bug.

Please repost the issue in the discussion group [
http://groups.google.com/group/swfobject ] and add the generated HTML to it 
(e.g.
view source in browser).

Original comment by bobbyvandersluis on 19 Nov 2008 at 1:16