Hallo Freunde,
ich möchte einen Besucherzähler einbauen und habe bisher folgendes gemacht:
in HTML:
in CSS
Code
p.nodrei
{
position: absolute;
/*font-size: 16pt; */
color: #ffff99;
top: 580px;
left: 80px;
width:50px;
/*height: 5px;*/
padding: 20px;
border: 1px solid #0000FF;
background-color: #ffff99;
}
Alles anzeigen
in PHP:
PHP
<?php
$datei = fopen("counter.txt","r+");
$counterstand = fgets($datei,10);
if($counterstand =="")
{
$counterstand =0;
}
$counterstand++;
echo($counterstand);
rewind($datei);
fwrite($datei, $counterstand);
fclose($datei);
?>
Alles anzeigen
Alles einzelnd klappt, auch der Zähler in PHP. Nur möchte ich den Zähler in das Feld nodrei ausgeben.
Also den echo Befehl umleiten![]()
Ich hab' bisher keine Lösung gefunden.![]()
Hat jemand von die Lösung für mich?
LG
willytyp