0

更新

<?PHP
    $Title = "This is the Open Grah script";
    $Description = "This is the one and only Description, or better yeh the first 150 charecters of the main content on your page. What ever you feel like really!";
    $Twitter = "@obama";

     echo "<html>
            <head>
             <title> $Title </title>";
     echo '<meta name="description" content=" ';
     echo $Description;
     echo '" />';

     echo "<meta name="twitter:card" content="summary" />";  
     echo '<meta name="twitter:site" content"';
     echo $Twitter
     echo '"/>';
     echo '<meta name="twitter:title" content"';
     echo $Title;
     echo '" />';
     echo '<meta name="twitter:description" content" ';
     echo $Description;
     echo '" />';

    ?>

跟进我的最后一个问题,我的页面将不再加载,如果您觉得我在浪费人们的时间,我很抱歉。这可能只是一个错字。

4

1 回答 1

3
 echo "<meta name='twitter:card' content='summary' />";  

您需要确保您没有"在以 . 开头的字符串中使用"。您应该使用'\"在以 . 开头的字符串中"

两行之后你就不见了;

echo $Twitter;
于 2015-05-05T14:39:15.617 回答