Hi,
when delivering swf from a server script, you habe both headers to tell it is swf and headers to tell it is non-cache
BTW: beware of swf embedding schemes that automatically add the .swf extension - you may need to edit the embedding javascript to accept .php instead
Also, if this is going to run on a windows server, be sure to use "binary" mode.
Here is a complete script that could be called movie1.php
MusicmanCode:<? header('Cache-control: no-cache'); header('Pragma: no-cache'); header('Expires: Jan 01 2000 00:00 GMT'); header('Content-type: application/x-shockwave-flash'); $fp = fopen('movie1.swf', 'rb'); fpassthru($fp);




Reply With Quote