Warning: fwrite(): supplied argument is not a valid stream resource in /opt/lampp/htdocs/shoutbox.php on line 27
Warning: fwrite(): supplied argument is not a valid stream resource in /opt/lampp/htdocs/shoutbox.php on line 28
Warning: fclose(): supplied argument is not a valid stream resource in /opt/lampp/htdocs/shoutbox.php on line 29
Das sind die Fehler.
Ich benutzt xampp(php5) auf einem Linux system.
Das problem ist das ich nicht weiter weiß.
PHP-Code:
function addeintrag()
{
$date = date("d.m.Y");
$uhrzeit = date("H:i");
$name = $_GET[name];
$message = $_GET[message];
///////////////////
$sicherung = file_get_contents("shout.txt");
$file = ("shout.txt");
fopen("$file","r+");
//Eintrag schreiben//
////////////////////
$eintrag = fwrite("$file","</span>$style<br><span style='visibility: hidden;'>"); << line 27
fwrite("$file","$eintrag $sicherung"); << line 28
fclose("$file"); << line 29
}
addeintrag($add);
Ich scheine irgendetwas vergessen zu haben aber ich weiß nicht
was daran falsch ist.
Was könnte man tun?