Hallo,
kleines aber feines Problem:
Ich hab einen Counter installiert - und will zwischen
[PHPWIKI]echo $counterstand; echo Besucher;[/PHPWIKI]
ein leerzeichen einfügen.
Das komplette Script schaut so aus:
[PHPWIKI]<?php
session_set_cookie_params(10800);
session_start();
?>[/PHPWIKI]
und dann:
[PHPWIKI]<?php
$datei = fopen("counter.txt","r+");
$counterstand = fgets($datei, 10);
if($counterstand == "")
{
$counterstand = 0;
}
if(!isset($_SESSION['counter_ip']))
{
$counterstand++;
rewind($datei);
fwrite($datei, $counterstand);
$_SESSION['counter_ip'] = true;
}
echo $counterstand; echo Besucher;
fclose($datei);
?>[/PHPWIKI]
Danke im Vorraus..
Goochaaa
kleines aber feines Problem:
Ich hab einen Counter installiert - und will zwischen
[PHPWIKI]echo $counterstand; echo Besucher;[/PHPWIKI]
ein leerzeichen einfügen.
Das komplette Script schaut so aus:
[PHPWIKI]<?php
session_set_cookie_params(10800);
session_start();
?>[/PHPWIKI]
und dann:
[PHPWIKI]<?php
$datei = fopen("counter.txt","r+");
$counterstand = fgets($datei, 10);
if($counterstand == "")
{
$counterstand = 0;
}
if(!isset($_SESSION['counter_ip']))
{
$counterstand++;
rewind($datei);
fwrite($datei, $counterstand);
$_SESSION['counter_ip'] = true;
}
echo $counterstand; echo Besucher;
fclose($datei);
?>[/PHPWIKI]
Danke im Vorraus..
Goochaaa
Kommentar