Not sure if I am in the right forum...

I am simply trying to add video to my site. I have taken some video with my digital video camera. I have transfered these files to my computer then encoded them with Flash encoder. With Flash 8 I have created the SWF file. I am using SWFobject to add the video to my site.

The videos display fine. But now what I am trying to do is display a list of links to multiple SWF files and using PHP to play the video when selected. The problem is when I use PHP the videos do not play. I can then take the code generated from the PHP and that works. I am not sure why its not working with PHP.

Here is my PHP code...

PHP Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<script type="text/javascript" src="swfobject.js"></script>
</head>
<body>
<div id="flashcontent">
<strong>You need to upgrade your Flash Player</strong>
</div>
<?php
echo "<script type='text/javascript'>";
echo 
"var so = new SWFObject('test.swf', 'sotester', '720', '480', '7', '#FF6600');";
echo 
"so.write('flashcontent');";
echo 
"</script>";
?>
</body>
</html>

I am not sure if I am explaining this, If I am not please let me know and I will clarify. Thanks.