g

syntex error 질문입니다.(초초보)

아래 소스를 실행해보니 다음과 같은 에러가 나는데 어디가 잘못되었는지 모르겠어요.
도와주세요. 소스는 "성공적인 웹 프로그래밍 PHP와MySQL"제3판의 소스입니다.

에러문구는
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in C:\APM_Setup\htdocs\chapter6\page.inc on line 116

=================
아래 : page.inc 소스
=================

<?php
class Page
{
  // Page 클래스의 속성
  public $content;
  public $title = 'TLA Consulting Pty Ltd';
  public $keywords = 'TLA Consulting, Three Letter Abbreviation,
                   some of my best friends are search engines';
  public $buttons = array( 'Home'     => 'home.php',
                        'Contact'  => 'contact.php',
                        'Services' => 'services.php',
                        'Site Map' => 'map.php'
                      );

  // Page 클래스의 연산
  public function __set($name, $value)
  {
    $this->$name = $value;
  }

  public function Display()
  {
    echo "<html>\n<head>\n";
    $this -> DisplayTitle();
    $this -> DisplayKeywords();
    $this -> DisplayStyles();
    echo "</head>\n<body>\n";
    $this -> DisplayHeader();
    $this -> DisplayMenu($this->buttons);
    echo $this->content;
    $this -> DisplayFooter();
    echo "</body>\n</html>\n";
  }

  public function DisplayTitle()
  {
    echo '<title> '.$this->title.' </title>';
  }

  public function DisplayKeywords()
  {
    echo "<meta name=\"keywords\" content=\"".
         "htmlentities($this->keywords)\" />";
  }

  public function DisplayStyles()
  {
?>  
<!--
  <style>
    h1 {color:white; font-size:24pt; text-align:center;
        font-family:arial,sans-serif}
    .menu {color:white; font-size:12pt; text-align:center;
           font-family:arial,sans-serif; font-weight:bold}
    td {background:black}
    p {color:black; font-size:12pt; text-align:justify;
       font-family:arial,sans-serif}
    p.foot {color:white; font-size:9pt; text-align:center;
            font-family:arial,sans-serif; font-weight:bold}
    a:link,a:visited,a:active {color:white}
  </style>
-->
<?php
  }

  public function DisplayHeader()
  {
?>  
  <table width="100%" cellpadding ="12" cellspacing ="0" border ="0">
  <tr bgcolor ="black">
    <td align ="left"><img src = "logo.gif" /></td>
    <td>
        <h1>TLA Consulting Pty Ltd</h1>
    </td>
    <td align ="right"><img src = "logo.gif" /></td>
  </tr>
  </table>
<?php
  }

  public function DisplayMenu($buttons)
  {
    echo "<table width='100%' bgcolor='white' cellpadding='4'
                cellspacing='4'>\n";
    echo "  <tr>\n";

 //버튼의 크기를 계산한다.
    $width = 100/count($buttons);

    foreach ($buttons as $name=>$url)
    {
      $this -> DisplayButton($width, $name, $url, !$this->IsURLCurrentPage($url));
    }
    echo "  </tr>\n";
    echo "</table>\n";
  }

  public function IsURLCurrentPage($url)
  {
    if(strpos($_SERVER['PHP_SELF'], $url )==false)
    {
      return false;
    }
    else
    {
      return true;
    }
  }

  public function DisplayButton($width, $name, $url, $active = true)
  {
    if ($active)
    {
      echo "<td width ='".htmlentities($width)."%'>
            <a href ='".htmlentities($url)"'>
            <img src ='s-logo.gif' alt ='".htmlentities($name)"' border ='0' /></a>
            <a href ='$url'><span class='menu'>$name</span></a></td>";
    } 
    else
    {
      echo "<td width ='".htmlentities($width)"%'>
            <img src ='side-logo.gif'>
            <span class='menu'>$name</span></td>";
    } 
  }

  public function DisplayFooter()
  {
?>
    <table width = "100%" bgcolor ="black" cellpadding ="12" border ="0">
    <tr>
      <td>
        <p class="foot">© TLA Consulting Pty Ltd.</p>
        <p class="foot">Please see our
                      <a href ="legal.php">legal information page</a></p>
      </td>
    </tr>
    </table>
<?php
  }
}
?>

댓글 2개

여기는 질문하는 게시판이 아닌듯합니다.

<img src ='s-logo.gif' alt ='".htmlentities($name)"' border ='0' /></a>
->
<img src ='s-logo.gif' alt ='".htmlentities($name)."' border ='0' /></a>
이렇게 해주시면 되겠네요
본 게시물은 질문게시판으로 이동되었습니다..
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

8,187건
+
제목 글쓴이 날짜 조회
07-10-19 조회 3,466
07-10-19 조회 3,226
07-10-19 조회 3,175
07-10-19 조회 2,878
07-10-19 조회 4,455
07-10-19 조회 5,821
07-10-19 조회 6,102
07-10-19 조회 3,487
07-10-19 조회 4,949
07-10-17 조회 4,599
07-10-17 조회 5,988
07-10-16 조회 4,610
07-10-15 조회 5,574
07-10-13 조회 5,249
07-10-09 조회 4,952
07-10-09 조회 4,287
07-10-09 조회 4,216
07-10-09 조회 4,775
07-10-09 조회 3,537
07-10-09 조회 3,319
07-10-09 조회 6,795
07-10-09 조회 3,945
07-10-09 조회 3,678
07-10-09 조회 3,999
07-10-09 조회 3,370
07-10-09 조회 4,410
07-10-08 조회 1.1만
07-10-05 조회 3,157
07-10-05 조회 4,082
07-10-03 조회 4,196
07-10-03 조회 3,400
07-10-03 조회 4,246
07-10-03 조회 5,263
07-10-03 조회 4,246
07-10-03 조회 3,648
07-10-03 조회 7,333
07-10-03 조회 4,914
07-10-03 조회 7,585
07-10-03 조회 3,682
07-10-03 조회 3,625
07-10-03 조회 3,631
07-10-03 조회 4,667
07-10-03 조회 4,622
07-10-03 조회 3,318
07-10-03 조회 5,179
07-10-03 조회 2,985
07-10-03 조회 2,653
07-10-03 조회 2,702
07-10-03 조회 2,912
07-10-03 조회 2,919
07-10-03 조회 4,736
07-10-02 조회 3,624
07-10-02 조회 3,156
07-10-02 조회 3,492
07-10-02 조회 5,797
07-10-02 조회 3,530
07-10-02 조회 4,156
07-10-02 조회 3,170
07-10-02 조회 4,836
07-10-02 조회 3,081
07-10-02 조회 8,916
07-10-02 조회 4,571
07-10-01 조회 2,535
07-10-01 조회 3,732
07-09-28 조회 4,758
07-09-28 조회 3,629
07-09-27 조회 3,529
07-09-27 조회 4,038
07-09-27 조회 5,080
07-09-27 조회 4,684
07-09-27 조회 3,820
07-09-27 조회 3,229
07-09-27 조회 3,284
07-09-27 조회 3,920
07-09-27 조회 3,253
07-09-15 조회 4,193
07-09-15 조회 2,910
07-09-13 조회 3,430
07-09-13 조회 2,951
07-09-13 조회 3,388
07-09-11 조회 3,621
07-09-09 조회 3,555
07-08-28 조회 3,497
07-08-28 조회 3,372
07-08-23 조회 4,676
07-08-22 조회 2,871
07-08-21 조회 4,657
07-08-21 조회 3,239
07-08-16 조회 6,511
07-08-07 조회 3,416
07-08-04 조회 3,543
07-08-04 조회 2,915
07-08-04 조회 3,326
07-08-04 조회 4,883
07-08-04 조회 2,728
07-08-04 조회 2,934
07-08-01 조회 5,570
07-08-01 조회 4,984
07-07-31 조회 4,448
07-07-31 조회 4,697