我想用$_get命令为facebook视频嵌入生成器创建一个php文件。请帮我一下。不起作用的代码写下来了:
<?php
echo "<object width="400" height="224" >
<param name="allowfullscreen" value="true" />
<param name="allowscriptaccess" value="always" />
<param name="movie" value="' . $video_url . '" />
<embed src="http://www.facebook.com/v/'.$_GET["id"].'" type="application/x- shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="400" height="224">
</embed>
</object>";
?>
示例:如果facebook视频id是:10150257497405484url应为:http://www.domain.com/embed.php?id=10150257497405484
您的报价不匹配
试试这个:
<?php
echo '<object width="400" height="224" >
<param name="allowfullscreen" value="true" />
<param name="allowscriptaccess" value="always" />
<param name="movie" value="' . $video_url . '" />
<embed src="http://www.facebook.com/v/' . $_GET["id"] . '" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="400" height="224">
</embed>
</object>';
?>