Hackerboard Wiki HaboBlog
Hackerboard bei Facebook Hackerboard bei Google+ Hackerboard bei Twitter

[HaBo]

 
(Web-) Design und webbasierte Sprachen Tipps & Tricks, Designabgleich, HTML & Javascript, Flash, ASP, PHP, Perl/CGI...

problem unexpected $end

Diskussion: problem unexpected $end im Forum (Web-) Design und webbasierte Sprachen, in der Kategorie Web, Network & Multimedia Palace; Anzeige irgendwie versteh ich nicht, wo bei folgendem quelltext (das meiste ist sowieso nur ein html-formular, und der fehler tritt ...

Antwort
Alt 22.11.04, 14:36   #1 (permalink)
 
Registriert seit: 28.05.04
chrisi Leistung: Facit NTK
Likes: 0
Smile problem unexpected $end

Anzeige

irgendwie versteh ich nicht, wo bei folgendem quelltext (das meiste ist sowieso nur ein html-formular, und der fehler tritt auch auf, wenn ich die includefiles - wie unten gepostet - auskommentiere) ein parse error auftreten kann:

PHP-Code:
<?php
//include './conf.inc';
//include './gbengine.php';

echo'<?xml version="1.0" encoding="UTF-8"?>';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <title>..::crystalserver - guestbook</title>
    
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta http-equiv="pragma" content="no-cache" />
    <meta http-equiv="expires" content="0" />';

    <link rel="stylesheet" href="../css/main.css" type="text/css" />
    <link rel="stylesheet" href="../css/hlines.css" type="text/css" />
    <link rel="stylesheet" href="../css/tables.css" type="text/css" />

<?php
if (!file_exists($dfile)){
    
err('\n\nguestbook data file \"'.$dfile.'\" not found!');
?>
    <script type="text/javascript>
    <!--
    <![CDATA[
        function charcount(form) {
            with (form) {
                cchar.value = <?php echo $mchar;?>-fcomment.value.length;
                if (parseint(cchar.value)<0) {
                    cchar.value = '0';
                }
            fcomment.value = fcomment.value.substr(0,<?php echo $mchar;?>);
              }
            return;
        }
    ]]>
    //-->
    </script>
</head>

<body>
<table class="t1">
    <tr class="tr1">
        <td class="h1">..::c~server - GuestBook::..</td>
    </tr>
</table>
<p class="p1" />

<table class="t2">
    <tr class="format">
        <td class="td1" />
        <td class="td2" />
        <td class="td1" />
        <td class="td2" />
        <td class="td1" />
        <td class="td2" />    
        <td class="td1" />
    </tr>
    <tr>
        <td class="td1" colspan="2" />
        <td class="td2" colspan="3">
            <table class="t3">
                <tr class="tr2">
                    <td class="td3"><div class="h2">..::write a new guestbook entry</div></td>
                </tr>
                <tr class="tr3">
                    <td class="td2">
                        <table class="t2">
                            <tr class="format">
                                <td class="td1" />
                                <td class="td2" />
                                <td class="td1" />
                                <td class="td2" />
                                <td class="td1" />
                                <td class="td2" />
                                <td class="td1" />
                            </tr>
                            <tr>
                            <form name="commentform" action="<?php echo $PHP_SELF;?>" method="post">
                                <td class="td1" />
                                <td class="t2" colspan="2">
                                    <div class="h3">
                                    Comment*:<br />
                                    <textarea id="comment" name="comment" rows="12" cols="50"></textarea>
                                    </div>
                                </td>
                                <td class="td1" />
                                <td class="t2" colspan="2">
                                    <div class="h3">
                                    Name*:<br />
                                    <input id="name" name="name" type="text" size="30" /><br />
                                    <br />eMail Adress*:<br />
                                    <input id="mail" name="mail" type="text" size="30" /><br />
                                    <br />Homepage URL:<br />
                                    <input id="hp" name="hp" type="text" size="30" /><br />
                                    <br />required information is marked with a (*)<br />
                                    <br /><input id="submit" value="send" type="submit" />
                                    </div>
                                </td>
                                <td class="td1" />
                            </form>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        <td class="td1" colspan="2" />
    </tr>
</table>

<p class="p1" />

<table class="t2">
    <tr class="format">
        <td class="td1" />
        <td class="td2" />
        <td class="td1" />
        <td class="td2" />
        <td class="td1" />
        <td class="td2" />    
        <td class="td1" />
    </tr>
    <tr>
        <td class="td1" />
        <td class="td2" colspan="5">
            <table class="t3">
                <tr class="tr2">
                    <td class="td3"><div class="h2">..::view existing guestbook entries</div></td>
                </tr>
<!-- start list of entries -->
                <tr class="tr3">
                    <td class="td2">
                        <div class="h3"><p>
                        <!-- postings -->
                        </p></div>
                    </td>
                </tr>
<!-- end list of entries -->
            </table>
        <td class="td1" />
    </tr>
</table>

<p class="p1" />

</body>
</html>
"Parse error: parse error, unexpected $ in /home/web/shp_umgebung/gbtxt/ctgb01.php on line 150"

versuche ich, das dokument mit PHPedit zu parsen, kommt folgende fehlermeldung:
"parse error: unexpected $end \ line 150 \ type: E_PARSE


bitte kann mir wer sagen, was dieser parse error soll, woher er kommt, und wie man ihn behebt?

vielen dank & liebe gruesse,
~chrisi
chrisi ist offline   Mit Zitat antworten
Alt 22.11.04, 15:05   #2 (permalink)
Member of Honour
 
Benutzerbild von ivegotmail
 
Registriert seit: 28.05.03
ivegotmail Leistung: Z3
Likes: 1
Standard

PHP-Code:
<?php 
if (!file_exists($dfile)) {     
err('\n\nguestbook data file \"'.$dfile.'\" not found!');  
?>
die geschweifte klammer wird nicht geschlossen
__________________
http://livehabo.hackerboard.de | http://livebb.sourceforge.net
ivegotmail ist offline   Mit Zitat antworten
   
HaBOT
 
- Anzeige -

Werbung ist gerade online    
Alt 22.11.04, 16:08   #3 (permalink)
Themenstarter
 
Registriert seit: 28.05.04
chrisi Leistung: Facit NTK
Likes: 0
Standard

vielen dank....
manchmal ist man einfach betriebsblind... wie auch immer^^

danke jedenfalls
chrisi ist offline   Mit Zitat antworten
Antwort
   
- Anzeige -

Werbung ist gerade online    

[HaBo] » Web, Network & Multimedia Palace » (Web-) Design und webbasierte Sprachen » problem unexpected $end
Themen-Optionen
Ansicht

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks sind aus
Pingbacks sind aus
Refbacks sind aus


Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
PHP Parse error: syntax error, unexpected $end MrSpider (Web-) Design und webbasierte Sprachen 3 23.04.08 21:15
!!Problem!! Brauch Mal Hilfe !! 16-bit-ms-dos teilsystem. !!Problem!! nonpretium Windows 0 24.10.05 20:56


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61