Quote
templates/header.php
session_start(): Cannot send session cache limiter - headers already sent (output started at /...../infusions/news_archive_panel/news_archive.php:4) Zeile: 7
templates/header.php
fopen(cnt.txt): failed to open stream: No such file or directory Zeile: 30
templates/header.php
fclose() expects parameter 1 to be resource, boolean given Zeile: 38
templates/header.php
fgets() expects parameter 1 to be resource, boolean given Zeile: 31
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<?php
session_set_cookie_params(3600); //Session (hier: auf 1 Stunde) zeitlich begrenzen
session_start(); //und starten bzw. weiterfuehren
if (!defined("IN_FUSION")) { die("Access Denied"); }
//////////////////////////////////////////////////////////////////////////////////////////////////
// COUNTER - Textcounter schreibt in cnt.txt im Root via SEESION GESTÜTZT///////////
/////////////////////////////////////////////////////////////////////////////////////////////////
$fp=fopen('cnt.txt','r+'); //Counter-Datei oeffnen
$c=fgets($fp,10); //Counter auslesen
if (!isset($_SESSION['cnt_flag'])){ //Falls neuer Besucher
$c++; //Counter hochzaehlen
rewind($fp); //Zeiger auf Dateianfang
fwrite($fp,$c); //Counter zurueckschreiben
$_SESSION['cnt_flag']=1; //Flag in Session setzen
}
fclose($fp); //Datei schliessen
if (iADMIN){
echo "<center>Besucher seit 01.02.2016: ".$c ;
echo "</center>";
}
/////////////////////////////////////////////////////////////////////////////////////////////////
// ENDE COUNTER //////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////
Quote
session_start(): Cannot send session cache limiter - headers already sent (output started at /...../infusions/news_archive_panel/news_archive.php:4) Zeile: 7
Category Forum
Modifications and Requests - 8Labels
None yet
Statistics
2 participants
Notifications
You are not receiving notifications from this thread.
Related Questions