PHP Headers for Flash swf

I’m trying to get some code to execute every time I call a file, so I want it to run through php. I can get this to work with an image like this:

//The code I want to execute goes here
$file = "bike.jpg";
header("Content-type: image/jpeg");

It works fine, but how would I do something like this where instead of having it output an image/jpeg it would be able to work with a flash movie? I tried switching the header to several different things, but I just get jumbled output in my browser when I go to the php page.

I got it, I had to use

header("Content-type: application/x-shockwave-flash");

If anyone who’s searching later needs to do something like this :wink: