newsydodaj:
Kod
<html>
<head>
<title>newsy - admin;) doja se newsa;)</title>
</head>
<body>
<form action="index.php" method="post">
osoba<input type="text" name="osoba">
wpis<textarea name="wpis" cols=45 rows=5 wrap="VIRTUAL">fgdf</textarea>
<input type="submit" value="dodaj;)">
</form>
</body></html>
<head>
<title>newsy - admin;) doja se newsa;)</title>
</head>
<body>
<form action="index.php" method="post">
osoba<input type="text" name="osoba">
wpis<textarea name="wpis" cols=45 rows=5 wrap="VIRTUAL">fgdf</textarea>
<input type="submit" value="dodaj;)">
</form>
</body></html>
a drugi to :
index.php
[php:1:78ac0d0302]<html>
<head>
<meta http-eqeuiv="content-type" content="text/html; charset=iso-8859-2">
<title>...:::Strona domowa Mateusza Kalinowskiego:::...</title>
</head>
<body>
<?
$osoba = (nl2br(htmlentities ($osoba));
$wpis = (nl2br(htmlentities ($wpis));
if ($osoba && $wpis) {
$ksiega[0] = "<dl><dt>".$wpis."<dd><b>".$osoba.",</b> <i>".
date ("d.m.Y")."</i></dl>rn";
if (file_exists("newsy.txt")) {
$i = 1;
$plik = fopen ("newsy.txt", "r+");
flock ($plik, 2);
while (!(feof($plik))) {
$ksiega[$i++] = fgets ($plik, 2048);
}
fseek ($plik, 0);
for ($i=0' $i<10; $i++) {
fputs ($plik, "$ksiega[$i]");
}
flock ($plik, 3);
fclose ($plik);
} else {
$plik = fopen ("newsy.txt", "w+");
flock ($plik, 2);
fputs ($plik, "$ksiega[0]");
flock ($plik, 3);
fclose ($plik);
}
}
if (file_exists("newsy.txt")) {
$plik = fopen ("newsy.txt", "r");
while (!(feof($plik))) {
print (fgets ($plik, 2048));
}
print "<hr>";
}
?>
</body>
</html>
[/php:1:78ac0d0302]
no i problem w tym ze jak otwieram tez index.php to wyswietla ze mam blad w 8 linijce

co to oznacza??