I have a SWF file that I would like to provide as an embed code to other people.
I have a list of allowable domains for this SWF file. The problem I am having is that I am unable to pass the HTTP REFERER from the site that is embeding my SWF to the SWF.
I have placed a request.php on one server then this file calls another PHP file on another server called loadFlash.php?file=test.swf
I use [header('Content-Type: application/x-shockwave-flash');] in the loadFlash.php file and use $_GET to get the name of the flash file being requested.
Now here is the tricky part, if do the following it works:
<?php
header('Content-Type: application/x-shockwave-flash');
$tmp = "test.swf";
readfile($tmp);
?>
if I do the following I get 'movie not loaded' because readfile is trying to find [test.swf?txt] it doesn't know to parse the ?txt as a parameter.
<?php
header('Content-Type: application/x-shockwave-flash');
$tmp = "test.swf?txt=" . $_SERVER['HTTP_REFERER'];
readfile($tmp);
?>
what options do I have