...

View Full Version : Error?



Kura_kai
06-17-2005, 03:24 AM
I don't under stand this error can some one help me

Parse error: syntax error, unexpected $end in c:\program files\apache group\Apache\htdocs\chat\admin\chat.php on line 48
the file is


<?
include "aup.php";
echo "
<html>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>
</head>
<body align='center' onLoad='msg()'>
<center>
<iframe src='filer.php' width='95%' height='85%' name='as'>
</iframe>
<br>
<table width='95%'>
<tr>
<td align='center' width='100%'>
<form action='chat.php' method='post'>
Message : <input name='msg'size=60>
<input type='submit' name='send' value='Send'>
<br>
</form>
</td>
</tr>
</table>
</body>
</html>";
$name=$_COOKIE["name"];
if (isset($_POST['msg']))
{
$name= "Dj-Kura";
if (isset($_POST['msg']))
{
$file = "../file.txt";
$msg = $name . ":" . $_POST['msg'] . "||";
$fp = fopen($file, "r");
$contents = fread($fp, filesize($file));
$x = explode("||",$contents);
$num = count( $x );
fclose($fp);
$fp = fopen ($file, 'w');
for ( $i = 1; $i <= $num; $i++ )
{
$msg = $msg . $x[$i-1] . "||";
}
fwrite ($fp, $msg);
fclose ($fp);
}
Echo "Please Input a Message";
?>

From what i know line 48 is the last one before the ?>

Nightfire
06-17-2005, 03:28 AM
You're missing a closing curly bracket }



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum