You'd have a single php file and accept a querystring on it. You would then serve it and read the file though:
$sSWF = isset($_GET['swf']) ? $_GET['swf'] : 'ADefaultSwfFileNamehere';
$sFile = sprintf('docs/%s.swf', $sSWF);
if (file_exists($sFile) && is_readable($sFile))
if ($fh = fopen($sFile, 'r'))
Simple as that. Best to add something to deal with the else clause's that I haven't put in there, but no matter what it'd have to be a default swf of some kind (since this needs to be served as swf).
Call it as: yourphpscript.php?swf=A for example.
Wait, what's with the PDF's here? Is this something to do with this flexpaper?
I presumed you are looking for a PHP solution to this, so dynamic wise that's all you need to do to serve a file with a given querystring. Otherwise, I haven't a clue what you're trying to do.
Am I hung up on swf files for some reason here? What is it you're needing to do with the PDF's directly, just modify them? If so, you'll be needing the PDF library to deal with that: http://php.net/manual/en/book.pdf.php
It does require a PECL installation in order to use it though. There may also be standard PHP user code available for download. This looks like one of them: http://sourceforge.net/projects/pdf-php/