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,188건
+
제목 글쓴이 날짜 조회
07-07-16 조회 3,111
07-07-06 조회 2,995
07-07-06 조회 3,429
07-06-23 조회 3,254
07-06-16 조회 2,765
07-05-20 조회 4,263
07-05-09 조회 3,446
07-05-09 조회 6,084
07-05-04 조회 2,683
07-04-30 조회 9,817
07-04-27 조회 4,322
07-04-26 조회 3,436
07-04-25 조회 5,274
07-04-18 조회 7,775
07-04-13 조회 3,107
07-04-12 조회 6,620
07-04-12 조회 5,024
07-04-12 조회 3,333
07-04-11 조회 5,704
07-04-05 조회 6,349
07-03-24 조회 4,407
07-03-20 조회 3,727
07-03-18 조회 3,986
07-03-18 조회 4,732
07-03-17 조회 4,226
07-03-16 조회 4,122
07-03-15 조회 5,283
07-03-13 조회 5,389
07-03-13 조회 3,577
07-03-08 조회 4,486
07-03-08 조회 3,970
07-03-08 조회 3,286
07-03-08 조회 4,173
07-03-05 조회 4,418
07-03-04 조회 2,900
07-03-01 조회 5,936
07-02-28 조회 3,227
07-02-27 조회 4,398
07-02-26 조회 3,310
07-02-26 조회 3,024
07-02-23 조회 3,657
07-02-23 조회 3,625
07-02-22 조회 4,006
07-02-22 조회 3,812
07-02-19 조회 3,843
07-02-17 조회 4,862
07-02-14 조회 8,159
07-02-12 조회 3,926
07-02-10 조회 3,542
07-02-02 조회 3,789
07-01-31 조회 3,463
07-01-29 조회 3,323
07-01-25 조회 5,109
07-01-21 조회 3,254
07-01-19 조회 3,038
06-12-15 조회 4,040
06-12-15 조회 4,456
06-12-15 조회 2,943
06-12-15 조회 4,484
06-12-15 조회 3,380
06-12-15 조회 4,088
06-12-15 조회 3,035
06-12-15 조회 2,761
06-12-15 조회 4,626
06-12-15 조회 3,170
06-12-15 조회 3,272
06-12-07 조회 4,710
06-12-07 조회 3,999
06-12-04 조회 4,650
06-11-27 조회 3,691
06-11-21 조회 4,013
06-11-15 조회 3,438
06-11-04 조회 3,323
06-10-29 조회 3,981
06-10-13 조회 3,839
06-10-13 조회 4,209
06-10-13 조회 4,170
06-10-12 조회 5,362
06-10-12 조회 4,270
06-10-04 조회 3,770
06-10-02 조회 4,555
06-09-29 조회 3,043
06-09-26 조회 3,382
06-09-26 조회 3,643
06-09-26 조회 3,291
06-09-26 조회 3,439
06-09-26 조회 4,338
06-09-25 조회 4,646
06-09-22 조회 4,985
06-09-22 조회 3,550
06-09-21 조회 4,321
06-09-21 조회 4,331
06-09-21 조회 3,541
06-09-21 조회 5,188
06-09-21 조회 3,719
06-09-21 조회 3,452
06-09-20 조회 3,022
06-09-15 조회 3,141
06-09-13 조회 3,463
06-09-11 조회 3,278