1

我想用 $_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 为:10150257497405484 网址应为:http ://www.domain.com/embed.php?id=10150257497405484

4

1 回答 1

3

你有不匹配的报价

尝试这个:

<?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>';
?>
于 2012-07-10T11:30:26.860 回答