problem unexpected $end

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:
<?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
 
PHP:
<?php 
if (!file_exists($dfile)) {     
err('\n\nguestbook data file \"'.$dfile.'\" not found!');  
?>
die geschweifte klammer wird nicht geschlossen
 
Zurück
Oben