Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Empfohlene Antworten

Veröffentlicht

Was bedeuten denn folgende Fehlermeldungen?

Warning: fopen(inc/count.txt) [function.fopen]: failed to create stream: Permission denied in /www/htdocs/v106098/index.php.old on line 7

Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/v106098/index.php.old:7) in /www/htdocs/v106098/index.php.old on line 11

Warning: fgets(): supplied argument is not a valid stream resource in /www/htdocs/v106098/index.php.old on line 12

Warning: rewind(): supplied argument is not a valid stream resource in /www/htdocs/v106098/index.php.old on line 14

Warning: fputs(): supplied argument is not a valid stream resource in /www/htdocs/v106098/index.php.old on line 15

bei folgenden Code

<?php 
$datei= "inc/count.txt";
if(!file_exists($datei))
{
fopen($datei,"a");
}
$counter= fopen($datei,"a+");

if ($_COOKIE[zaehlkeks] < time()-20)
{
setcookie("zaehlkeks", time());
$aufruf=fgets($counter, 100);
$aufruf=$aufruf+1;
rewind($counter);
fputs($counter, $aufruf);
}
else
{
$aufruf= fgets($counter,100);
}

$ausgabe='';
$ausgabe.='
<html>
<head>...
[/PHP]

Verschoben -> Webserverprogrammierung

1.

Warning: fopen(inc/count.txt) [function.fopen]: failed to create stream: Permission denied in /www/htdocs/v106098/index.php.old on line 7

Du kannst die Datei nicht zum schreiben öffnen.

2.

Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/v106098/index.php.old:7) in /www/htdocs/v106098/index.php.old on line 11

Dieser Ferhler ist eine Folge der ersten Fehlerausgabe. Sobald eine Ausgabe erfolgt ist, können keine Header (was das Cookie ja nun ist) gesetzt werden.

3.

Warning: fgets(): supplied argument is not a valid stream resource in /www/htdocs/v106098/index.php.old on line 12

Die Funktion hat kein gültiges Filehandle übergeben bekommen. Siehe 1.

4.

Warning: rewind(): supplied argument is not a valid stream resource in /www/htdocs/v106098/index.php.old on line 14

Die Funktion hat kein gültiges Filehandle übergeben bekommen. Siehe 1.

5.

Warning: fputs(): supplied argument is not a valid stream resource in /www/htdocs/v106098/index.php.old on line 15

Die Funktion hat kein gültiges Filehandle übergeben bekommen. Siehe 1.

Am besten du kontrollierst die Berechtigungen der Datei oder des Verzeichnisses. Wenn du 1. in Griff bekommst, erübrigt sich damit der Rest.

Hab wohl nicht gut genug beschrieben was ich eigentlich wissen will...

Ich will wissen WARUM ich die Fehlermeldung bekomme!!!

Lokal auf meinem WebServer (Apache) funzt alles, doch auf dem WebSpace geht es nicht mehr...

Werd wohl alles in ne DB kloppen, wenn ich die Datei nicht auf bekomme

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.