I have a gif file redirect to a php file with this code:
<?php
unset($files);
for ($i = 1; $i <= 7; $i++) {
$files[] = $i . '.swf';
}
header('Content-type: flash/swf');
$rand = rand(0, count($files) - 1);
header('Cache-Control: no-store, no-cache, no-transform, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0, max-age=0', false);
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
header('Pragma: no-cache');
echo file_get_contents($files[$rand]);
?>
what it soppose to do is display a flash video 1-7 but when i get directed to it it promots me to dl it. what is wrong?