I want to keep my flash files out from under the document root so that nobody can go to http://mysite/flash.swf. I know how to do this with regular files that are to be downloaded with code like this:
header(\"Content-Disposition: atachment; filename=$filename\");
header(\"Content-Type: application/octet-stream\");
header(\"Content-Length: \".filesize(\"$path/$filename\"));
Header(\"Expires: 0\");
readfile($myfile);
This is just for downloading files, though...what header information would I need so that I could replace
\"<EMBED src=\'home2.swf\'\"
with something like this:
\"<EMBED src=\'flashgrabber.php?grab=home2.swf\'\"
would I just need to replace the mime type to whatever flash is(?)?