Php “故障排除”;分析错误,意外'&燃气轮机'&引用;错误

Php “故障排除”;分析错误,意外'&燃气轮机'&引用;错误,php,Php,我得到了这个错误,正在阅读 解析错误:解析错误,在第11行的C:\wamp\www\about.php中出现意外的'>' 这是我的密码: <?php session_start(); include ("include/header.php"); if (!isset($_SESSION['name'])){; header("Location:includeindex.php"); exit; } else{ TopNavigation("about Me -ECA236","Abo

我得到了这个错误,正在阅读

解析错误:解析错误,在第11行的C:\wamp\www\about.php中出现意外的'>'

这是我的密码:

<?php
session_start();
include ("include/header.php");
if (!isset($_SESSION['name'])){;
header("Location:includeindex.php");
exit;
 }
 else{
TopNavigation("about Me -ECA236","About Me",$_SESSION['name']);
echo "<p>Here is a little about me. I am a mother of twin girls who are 9 </p>
echo "<p>I been married for 5 years but been with my husband for 11 years </p>
echo "<p>I am attending college for Computer Programming and Database Mangament      </p>
echo "<p>After I get done with this degree I am want to go back for Web Design </p>
echo "<p>since half my classes are web design now. I enjoy camping,bon fires and </p>
echo "<p>playing video games, hanging out with friends and family.</p>
Footer();
   }
 ?>

我试着加上;“到最后”和“到最后,但同样的事情突然出现。有人能看到我做错了什么吗

这是我在添加“;为此:

警告:include(include/header.php)[function.include]:打开流失败:第3行的C:\wamp\www\about.php中没有这样的文件或目录

警告:include()[function.include]:在第3行的C:\wamp\www\about.php中打开“include/header.php”进行包含(include_path=';C:\php5\pear')失败

警告:无法修改标题信息-标题已由C:\wamp\www\about.php第5行中的C:\wamp\www\about.php:3处开始的输出发送


您需要添加一个引号
”;
到您的
echo
行的末尾

您需要添加一个引号
到您的
回显
行的末尾

您需要在每个回显行的末尾加上引号和分号


一般来说,任何时候在PHP中打开一行引号时,都需要将其关闭,并且每一行(除了少数例外,如流控制语句等)都需要以分号结尾。

在每一回显行的末尾都需要引号和分号

一般来说,任何时候在PHP中打开一行引号时,都需要将其关闭,并且每一行(除了少数例外,如流控制语句等)都需要以分号结尾。

您有:

echo "<p>playing video games, hanging out with friends and family.</p>
echo”玩电子游戏,与朋友和家人闲逛

你需要:

echo "<p>playing video games, hanging out with friends and family.</p>";
echo“玩电子游戏,与朋友和家人闲逛。

”;
您有:

echo "<p>playing video games, hanging out with friends and family.</p>
echo”玩电子游戏,与朋友和家人闲逛

你需要:

echo "<p>playing video games, hanging out with friends and family.</p>";
echo“玩电子游戏,与朋友和家人闲逛。

”;
您没有关闭报价:


echo“这里有一点关于我的,我是一个9岁的双胞胎女孩的母亲”您没有关闭报价:


echo“这里有一点关于我的,我是一个9岁的双胞胎女孩的母亲”

您的所有回显线路都需要关闭其讲话标记并以分号结束。

您的所有回显线路都需要关闭其讲话标记并以分号结束。

您根本没有关闭任何回显语句。以下各项应起作用:

<?php
session_start();
include ("include/header.php");
if (!isset($_SESSION['name'])){
header("Location:includeindex.php");
exit;
 }
 else{
TopNavigation("about Me -ECA236","About Me",$_SESSION['name']);
echo "<p>Here is a little about me. I am a mother of twin girls who are 9 </p>";
echo "<p>I been married for 5 years but been with my husband for 11 years </p>";
echo "<p>I am attending college for Computer Programming and Database Mangament      </p>";
echo "<p>After I get done with this degree I am want to go back for Web Design </p>";
echo "<p>since half my classes are web design now. I enjoy camping,bon fires and </p>";
echo "<p>playing video games, hanging out with friends and family.</p>";
Footer();
   }
 ?>


我在第4行还看到了一个分号,我认为不需要它——在上面删除了它。

您根本没有关闭任何echo语句。以下各项应起作用:

<?php
session_start();
include ("include/header.php");
if (!isset($_SESSION['name'])){
header("Location:includeindex.php");
exit;
 }
 else{
TopNavigation("about Me -ECA236","About Me",$_SESSION['name']);
echo "<p>Here is a little about me. I am a mother of twin girls who are 9 </p>";
echo "<p>I been married for 5 years but been with my husband for 11 years </p>";
echo "<p>I am attending college for Computer Programming and Database Mangament      </p>";
echo "<p>After I get done with this degree I am want to go back for Web Design </p>";
echo "<p>since half my classes are web design now. I enjoy camping,bon fires and </p>";
echo "<p>playing video games, hanging out with friends and family.</p>";
Footer();
   }
 ?>

我在第4行还看到了一个分号,我认为不需要它——请在上面删除它。

试试这个:

session_start();
include_once ("include/header.php");
if (!isset($_SESSION['name'])) {
    header("Location:includeindex.php");
    exit;
}
else {
    TopNavigation("about Me -ECA236", "About Me", $_SESSION['name']);
    echo "<p>Here is a little about me. I am a mother of twin girls who are 9</p>";
    echo "<p>I been married for 5 years but been with my husband for 11 years</p>";
    echo "<p>I am attending college for Computer Programming and Database Mangament</p>";
    echo "<p>After I get done with this degree I am want to go back for Web Design</p>";
    echo "<p>since half my classes are web design now. I enjoy camping,bon fires and</p>";
    echo "<p>playing video games, hanging out with friends and family.</p>";
    Footer();
}
session_start();
include_once(“include/header.php”);
如果(!isset($\u会话['name'])){
标题(“位置:includeindex.php”);
出口
}
否则{
TopNavigation(“关于我-ECA236”,“关于我”,“关于我”$_SESSION['name']);
echo“这里有一点关于我。我是一个9岁双胞胎女孩的母亲。”;
echo“我结婚5年了,但和丈夫在一起11年了”

; echo“我正在上计算机编程和数据库管理学院”

; echo“完成这个学位后,我想回去做网页设计”

; echo“因为我现在有一半的课程是网页设计。我喜欢野营、篝火和

”; echo“玩电子游戏,与朋友和家人闲逛。

”; 页脚(); }
试试这个:

session_start();
include_once ("include/header.php");
if (!isset($_SESSION['name'])) {
    header("Location:includeindex.php");
    exit;
}
else {
    TopNavigation("about Me -ECA236", "About Me", $_SESSION['name']);
    echo "<p>Here is a little about me. I am a mother of twin girls who are 9</p>";
    echo "<p>I been married for 5 years but been with my husband for 11 years</p>";
    echo "<p>I am attending college for Computer Programming and Database Mangament</p>";
    echo "<p>After I get done with this degree I am want to go back for Web Design</p>";
    echo "<p>since half my classes are web design now. I enjoy camping,bon fires and</p>";
    echo "<p>playing video games, hanging out with friends and family.</p>";
    Footer();
}
session_start();
include_once(“include/header.php”);
如果(!isset($\u会话['name'])){
标题(“位置:includeindex.php”);
出口
}
否则{
TopNavigation(“关于我-ECA236”,“关于我”,“关于我”$_SESSION['name']);
echo“这里有一点关于我。我是一个9岁双胞胎女孩的母亲。”;
echo“我结婚5年了,但和丈夫在一起11年了”

; echo“我正在上计算机编程和数据库管理学院”

; echo“完成这个学位后,我想回去做网页设计”

; echo“因为我现在有一半的课程是网页设计。我喜欢野营、篝火和

”; echo“玩电子游戏,与朋友和家人闲逛。

”; 页脚(); }
文件的语法错误。下面的示例应该可以解决这个问题,但是,该消息只意味着部分输出实际上是代码,因为您没有正确使用字符串周围的
引号。请记住,字符串也可以跨多行工作,因此这可能更容易理解:

<?php
session_start();
include ("include/header.php");
if (!isset($_SESSION['name']))
{
  header("Location:includeindex.php");
  exit;
} else {
  TopNavigation("about Me -ECA236","About Me",$_SESSION['name']);
  echo "
    <p>Here is a little about me. I am a mother of twin girls who are 9 </p>
    <p>I been married for 5 years but been with my husband for 11 years </p>
    <p>I am attending college for Computer Programming and Database Mangament      </p>
    <p>After I get done with this degree I am want to go back for Web Design </p>
    <p>since half my classes are web design now. I enjoy camping,bon fires and </p>
    <p>playing video games, hanging out with friends and family.</p>
    " # string ends here
    ;
  Footer();
}
?>

甚至更好,因为这是PHP:

<?php
session_start();
include ("include/header.php");
if (!isset($_SESSION['name']))
{
  header("Location:includeindex.php");
  exit;
} else {
  TopNavigation("about Me -ECA236","About Me",$_SESSION['name']);
  ?>
    <p>Here is a little about me. I am a mother of twin girls who are 9 </p>
    <p>I been married for 5 years but been with my husband for 11 years </p>
    <p>I am attending college for Computer Programming and Database Mangament</p>
    <p>After I get done with this degree I am want to go back for Web Design </p>
    <p>since half my classes are web design now. I enjoy camping,bon fires and </p>
    <p>playing video games, hanging out with friends and family.</p>
  <?php
  Footer();
}
?>

这里有一点关于我。我是一个9岁双胞胎女孩的母亲

我结婚5年了,但和丈夫在一起11年了

我上的大学是计算机编程和数据库管理

完成这个学位后,我想回去从事网页设计

因为我现在有一半的课程是网页设计。我喜欢露营、篝火和户外活动

玩电子游戏,和朋友和家人出去玩


文件的语法错误。下面的示例应该可以修复它,但是,该消息只意味着部分输出确实是代码,因为您没有正确使用字符串周围的
引号。请记住,字符串也适用于多行,因此这可能更容易理解:

<?php
session_start();
include ("include/header.php");
if (!isset($_SESSION['name']))
{
  header("Location:includeindex.php");
  exit;
} else {
  TopNavigation("about Me -ECA236","About Me",$_SESSION['name']);
  echo "
    <p>Here is a little about me. I am a mother of twin girls who are 9 </p>
    <p>I been married for 5 years but been with my husband for 11 years </p>
    <p>I am attending college for Computer Programming and Database Mangament      </p>
    <p>After I get done with this degree I am want to go back for Web Design </p>
    <p>since half my classes are web design now. I enjoy camping,bon fires and </p>
    <p>playing video games, hanging out with friends and family.</p>
    " # string ends here
    ;
  Footer();
}
?>

甚至更好,因为这是PHP:

<?php
session_start();
include ("include/header.php");
if (!isset($_SESSION['name']))
{
  header("Location:includeindex.php");
  exit;
} else {
  TopNavigation("about Me -ECA236","About Me",$_SESSION['name']);
  ?>
    <p>Here is a little about me. I am a mother of twin girls who are 9 </p>
    <p>I been married for 5 years but been with my husband for 11 years </p>
    <p>I am attending college for Computer Programming and Database Mangament</p>
    <p>After I get done with this degree I am want to go back for Web Design </p>
    <p>since half my classes are web design now. I enjoy camping,bon fires and </p>
    <p>playing video games, hanging out with friends and family.</p>
  <?php
  Footer();
}
?>

这里有一点关于我的。我是一个9岁双胞胎女孩的母亲

我结婚5年了,但和丈夫在一起11年了

我上的大学是计算机编程和数据库管理

在我得到don之后