Hi frnds...
I need to integrate php variable with vedio scripting file.....

i fetch my vedio file path from database...here i need to replace the file=videos/movieimgae.swf ....with $vedio..

<?php
$vedio="vedios/aaa.php";

?>
<SCRIPT type=text/javascript>
var s1 = new SWFObject('player.swf','player','400','300','9');
s1.addParam('allowfullscreen','true');
s1.addParam('allowscriptaccess','always');
s1.addParam('flashvars','file=[B]videos/movieimgae.swf[/B]');
s1.write('preview');
                        </SCRIPT>

Hi....

sry..
in the above code...

<?php
$vedio="vedios/[B]aaa.swf[/B]" ;
?>

is not a php file. its a vedio file.....

Hi frnds...
I need to integrate php variable with vedio scripting file.....

i fetch my vedio file path from database...here i need to replace the file=videos/movieimgae.swf ....with $vedio..

<?php $video="vedios/aaa.php"; ?>
<script type="text/javascript">
  var s1 = new SWFObject('player.swf','player','400','300','9');
  s1.addParam('allowfullscreen','true');
  s1.addParam('allowscriptaccess','always');
  s1.addParam('flashvars','file=[B]<?php echo $video ?>[/B]');
  s1.write('preview');
</script>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.