php 解析错误
在我的网站中,所有页面都包含 Follow Us
面板,因此尽管或在所有页面上写入它,我还是创建了一个单独的 modFollow.php
文件并将其包含在所有页面中,但我不这样做不知道这是否是正确的方法,但我收到了这个错误消息- 我的索引页代码 -
<div class="follow">
<?php include 'modFollow.php'; ?>
</div>
modFollow.php 代码
<?php
//follow us module
echo "<h2 class='star'>Follow Us</h2>"
echo "<hr width='100%' color='WhiteSmoke' align='left'>"
echo "<a href='#'><img src='images/twitter.png' width = '35px' height = '32px' title = 'Twitter'/></a>"
echo "<a href='#'><img src='images/facebook.png' width = '35px' height = '32px' title = 'FaceBook'/></a>"
echo "<a href='#'><img src='images/rss.jpg' width = '35px' height = '32px' title = 'RSS'/></a>"
echo "<a href='#'><img src='images/orkut.jpeg' width = '35px' height = '34px' title = 'Orkut'/></a>"
?>
- 错误:解析错误:语法错误,意外的 T_ECHO,期待 ',' 或 ';'在 C:\xampp\htdocs\shizin\modFollow.php 第 6 行
in my website all pages contain Follow Us
panal so inspite or writing it on all pages I have created a seperate modFollow.php
file and included it in all pages, I don't know whether its a correct way or not but I am gettein this error message-
my indexpage code -
<div class="follow">
<?php include 'modFollow.php'; ?>
</div>
modFollow.php code-
<?php
//follow us module
echo "<h2 class='star'>Follow Us</h2>"
echo "<hr width='100%' color='WhiteSmoke' align='left'>"
echo "<a href='#'><img src='images/twitter.png' width = '35px' height = '32px' title = 'Twitter'/></a>"
echo "<a href='#'><img src='images/facebook.png' width = '35px' height = '32px' title = 'FaceBook'/></a>"
echo "<a href='#'><img src='images/rss.jpg' width = '35px' height = '32px' title = 'RSS'/></a>"
echo "<a href='#'><img src='images/orkut.jpeg' width = '35px' height = '34px' title = 'Orkut'/></a>"
?>
ERROR: Parse error: syntax error, unexpected T_ECHO, expecting ',' or ';' in C:\xampp\htdocs\shizin\modFollow.php on line 6
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
每条回声线都需要以
;
each of the echo lines needs to end with
;
并且不要忘记在每个 echo 语句后面给出
;
and dont forget to give
;
behind each echo statement在 php 中,每个语句都必须以分号 [;] 结束。
您忘记在声明末尾添加此内容。
In php every statment must be terminated by semi colon [;].
you forget to add this at end of the statment.
哦......多么愚蠢的错误,我忘记了 modFolloe.php 中的 ;
oh....what a silly mistake I was forgetting ; in modFolloe.php